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 November 3rd, 2003, 06:42 AM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Insert data across different server from Trigger

Hi,

I would like to know, which is the best method for data transfer across two different SQL servers. My requirement is, to get data from one server and populate tables on the other. is it okay if I use trigger on the first Server's table? Data flow is only one way. From first server to second.

thanks,

Arin

 
Old November 3rd, 2003, 07:05 AM
Authorized User
 
Join Date: Jun 2003
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

The method I use is to populate a set of staging tables from the triggers. I have a DTS set up to transfer the data from Server1 (staging tables) to Server 2 (staging tables). Once the data is in Server2 staging tables I execute SPs to insert the data into the 'real' tables.

The main advantage of this is that the DTS is run on a schedule out of hours so if large amounts of data is transferred then it does not affect performance. I also have a lot of validation to perform so I can do this in the SPs before I populate the 'real' tables.

This is 1 method out of many ways to transfer the data and I hope it helps give you an idea on how to tranfer your data.

Nickie





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert Data from Excel file to SQL server yes_no ASP.NET 1.0 and 1.1 Professional 5 August 27th, 2008 12:46 AM
Insert Trigger debbiecoates SQL Server 2000 3 December 24th, 2007 08:00 AM
Insert data row in SQL SERVER 2000 dimeanel ADO.NET 1 January 25th, 2006 09:32 AM
trigger to insert current date on insert kev_79 SQL Server 2000 3 January 23rd, 2006 05:58 PM
Insert Trigger Arsi SQL Server 2000 2 February 25th, 2005 05:41 PM





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