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)
 how to set global variable at run-time

Author  Topic 

Hommer
Aged Yak Warrior

808 Posts

Posted - 2007-09-12 : 12:21:08
Hi, all,

I want to set a DTS global variable's value at run-time.
I have defined the var on the property page and make it defualt to ''.

I tried to assign a value to it either in an exec sql task or an activeX ascript task, but none of them worked. The value comes from a table.

Thanks for any help!

nr
SQLTeam MVY

12543 Posts

Posted - 2007-09-12 : 19:57:19
see
http://www.nigelrivett.net/DTS/DTSExecuteStoredProcedure.html

for the activex script.

==========================================
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

Hommer
Aged Yak Warrior

808 Posts

Posted - 2007-09-13 : 09:40:04
Wow, that is THE way to hook up a table value with a DTS variable.

Does same task get easier under sql2005?
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2007-09-13 : 18:53:39
It's quite a bit different in SSIS.
Not saying it's easier but it is a much more complete and flexible product than dts.

==========================================
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 -