Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Asynchronously running queries

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-06-09 : 08:29:41
Ryland writes "I have a situation where, via linked servers, I request data from 7 oracle servers and pool it to a staging table.

The pulls are individually rather slow. I'd like to create a SP where I pass a parameter from Stored Proc 1 (the date of the data I'm requesting, '6/5/05' for example) to stored proc 2, and then the staging table is purged (TRUNCATE TABLE) and then the seven statements independently and simultaneously execute INSERT statements.

When all 7 inserts have completed, I need to detect this and return control to the original calling procedure (stored proc 1).

I'm doing this from SQL.

Your help is greatly appreciated!!!

Thanks,
-R"

X002548
Not Just a Number

15586 Posts

Posted - 2005-06-09 : 09:23:17
Have the sproc start 7 jobs....have each job insert to a log table to indicate success or failure, then interogate that log


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2005-06-09 : 09:47:45
You could use DTS to run them in parallel.

CODO ERGO SUM
Go to Top of Page
   

- Advertisement -