all groups > sql server dts > january 2007 >
You're in the

sql server dts

group:

how to set the Variables to a value in a asp script?


how to set the Variables to a value in a asp script? Mint
1/12/2007 7:15:38 AM
sql server dts:
how can i set the Variables to a value in a asp script?
i have created a dts packedge which include a goble Variable.
the sql task just like 'select * from table where id>?'
and the goble Variable is named myid.
how can i set the Variable 'myid' to a value in a asp script?
can anyone help?
thanks!
Re: how to set the Variables to a value in a asp script? Allan Mitchell
1/13/2007 9:42:01 AM
Where does the ExecuteSQL task come into this? Is it because you want
to set a value of a variable just like that?

You are first going to get a reference using the DTS object model to the
package object. You will then use the GlobalVariablesCollection to
retrieve your variable and assign it a value.

Things to look at

http://support.microsoft.com/?kbid=252987

http://www.sqldts.com/207.aspx

http://www.sqldts.com/265.aspx (.Net I know but it gives you an idea
where to find stuff)



--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




[quoted text, click to view]
AddThis Social Bookmark Button