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
 Import/Export (DTS) and Replication (2000)
 Setting a DTS Global Variable to @@Identity

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-01-12 : 08:42:57
David writes "I have a stored procedure that inserts a record into a table and returns the @@Identity value. I have returned the value as an output parameter (version 1) and as a rowset (version 2).

I need to capture this value inside a DTS package as a global variable. Ideally, it should be an integer as I intend to use it to insert child records into another table."

X002548
Not Just a Number

15586 Posts

Posted - 2006-01-12 : 22:47:12
Why? Just use Sprocs and lose DTS

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

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page
   

- Advertisement -