Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running SQL Select script between SQL servers

Status
Not open for further replies.

itrcpo

IS-IT--Management
Jun 2, 2003
14
DK
I have 2 SQL servers, one SQL 7 and another SQL 2000.

The SQL 7.0 server is the "Master" DB, and every 30 minutes i run a stored procedure on the SQL 2000 server which "copies" all the new entries from the SQL 7 to the SQl 2000 server.

Normally it is about 200 new entries, but it always take about 1,5 minutes to run?

I have tried to select and insert 5000 entries, just to check the performance, and that also took about 1,5 minute?

Are there anyone who have tried the same?

Christoffer
 
You can create trigger on table for insert!
Writing new inserts into a temp table
schedule job to check the temp table every "x" mins.
If the temp table possesses rows,use select into to insert them into 2000 server and also
truncate the temp table soon after inserting all the existing rows in the temp table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top