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

sql server dts

group:

executing package while passing user variables in SQL2005


Re: executing package while passing user variables in SQL2005 Allan Mitchell
7/20/2007 12:00:00 AM
sql server dts:
Hello Daniel,

DTExec is the new way to execute packages from the cmdline in 2005

You can build the string you need if you do

Start | Run | DTSRunUI


The tab you are looking for is "Set Values"

A Dsicussion in BOL is here

ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/sqlcmpt9/html/89edab2d-fb38-4e86-a61e-38621a214154.htm

It has the exact thing you are trying to do.


Remember though that SSIS is not licenced the same as DTS.

--

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

[quoted text, click to view]

executing package while passing user variables in SQL2005 Daniel Vakil
7/20/2007 1:44:00 AM
hi, in sql2000 I used "dtsrun" to run a DTS package from a stored procedure
and used the /A parameter for passing user variables. How can i use the
"SSIS" to build into the SQL2005 server a new package and run it from a
Re: executing package while passing user variables in SQL2005 Daniel Vakil
7/21/2007 11:20:00 AM
cannot reach the site, any idea why ?

[quoted text, click to view]
Re: executing package while passing user variables in SQL2005 Daniel Vakil
7/21/2007 12:18:01 PM
hello Allan,

i run the package with dtexec but i got this error :

[ActiveX Script Task] Error: Retrieving the file name for a component failed
with error code 0x01AA3424.

the script include only this line ( for testing purpose )

MsgBox(Dts.Variables("myvariable").Value)

[quoted text, click to view]
Re: executing package while passing user variables in SQL2005 Allan Mitchell
7/23/2007 12:00:00 AM
Hello Daniel,

You need to plug the URL into BOL not a browser. sorry should have mentioned
that.

--

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

[quoted text, click to view]

Re: executing package while passing user variables in SQL2005 Allan Mitchell
7/23/2007 12:00:00 AM
Hello Daniel,


The error suggests a problem with an ActiveX Script component.

[ActiveX Script Task] Error: Retrieving the file name for a component

What is in that task? The preferred way to do things and really the way
we should be doing scripts now is to use the Script Task.


--

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