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

sql server dts

group:

how to pass params to execute SQL task


how to pass params to execute SQL task Awi Ktir
1/19/2007 12:48:23 PM
sql server dts:
I have a package that has config file.
there is a variable in the package that should come from the config file and
be fed to a simple update stmt.
the connection is ADO (not ADO.net).

variable is user::mg_id
the config file has the name or the variable and the value in it.
the package has the variable.

the update stmt should update a col to the value of the variable.
update tblname set col_name = (value of the variable mg_id)..

how to do that? what are the place holders and where to put what.

the task does not accept the SQL stmt unless we declare the @param inside it
and i did the mapping between @param and the variable user::mg_id in but it
still updates everything to NULL.

thanks.



Re: how to pass params to execute SQL task Awi Ktir
1/19/2007 12:53:05 PM
don't worry .. I figured it out.
thanks.

[quoted text, click to view]

Re: how to pass params to execute SQL task Allan Mitchell
1/20/2007 10:20:20 AM
A good place to start when using the ExecuteSQL task and finding out its
possibilities is here (BTW is tooks as though you are using SSIS)

The ExecuteSQL Task
(http://www.sqlis.com/58.aspx)

--


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