Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2003, 01:13 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to replicate database using SQL SERVER 2000

Hi Friends!!

I want to replicate database in SQL SERVER 2000 by using some SQL statement and NOT by using the Backup and restore facility in SQL Enterprise Manager. How can I achieve that....any help will be appreciated....thanks



cheers,
debsoft
__________________
cheers,
debsoft
 
Old June 27th, 2003, 01:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could add a linked server. You can do this from EM or using sp_addlinkedserver. From there you could then schedule a job that copies the data accross using a fully qualified name:
<servername>.<database name>.<owner name>.<object name> eg
INSERT INTO SQL1.db1.dbo.Table1
(Val1, Val2, Val3)
VALUES
SELECT Val1, Val2, Val3
FROM SQL2.db1.dbo.Table1

regards
David Cameron
 
Old June 27th, 2003, 04:59 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks David...I saw a lot of posts of yours on this site...r u a SQL Server or database expert??? Anyway keep up the good spirit...

I'll try to implement ur solution and get to know more
abt sp_addlinkedserver...

Thanks once again

cheers,
debsoft





Similar Threads
Thread Thread Starter Forum Replies Last Post
transfer database from Paradox to Sql server 2000 oveisi SQL Language 1 November 26th, 2007 05:40 AM
Chpt 3 - Connect to SQL Server 2000 Database BennyHill BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 June 7th, 2007 03:30 PM
How to Backup database - SQL Server 2000 cancer10 SQL Language 2 March 1st, 2007 07:21 AM
copy a database using SQL Server 2000 samnachilomo SQL Server 2000 3 November 20th, 2006 01:15 AM
how to store file in sql server 2000 database vivekkumar_23 SQL Server 2000 1 February 27th, 2006 10:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.