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)
 DTS: Set Global variables from resultset

Author  Topic 

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2004-06-04 : 07:59:07
I am using SQL Server 7.0

I want to set the DTS package global variables value from the resultsets.
I have created a global variable 'FileName', I want to dynamically change the value at run time from the query, Select inputfilename from sometable where is_processed = 0.

Any help is highly appreciated.

Thanks


- Sekar

nr
SQLTeam MVY

12543 Posts

Posted - 2004-06-04 : 08:14:06
Have a look at the dynamic properties task.
You can set a global variable from a query.

Except that you're using v7.
See
http://www.nigelrivett.net/DTSExecuteStoredProcedure.html


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -