dbTalk Databases Forums  

Yukon DTExec

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Yukon DTExec in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James Saull
 
Posts: n/a

Default Yukon DTExec - 08-03-2004 , 03:37 PM






Has anyone tried to use DTExec to run a package from the command line?

I am trying to use the /SET switch to configure a Package variable eg:

dtexec /f mypackage.dtsx /set myvariable;myvalue

This fails and tells me that I have not used the package delimiter. So I
tried:

dtexec /f mypackage.dtsx /set \package\variables\myvariable;myvalue

This then fails and tells me that "variables" is not found in the
executables collection - well of course, but I told you to look in the
variables collection...



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Yukon DTExec - 08-04-2004 , 02:32 AM






The Yukon NGs woud be a better place for this. More info here-

http://communities.microsoft.com/new...r2005&slcid=us


--
Darren Green
http://www.sqldts.com

"James Saull" <nospamjamessaull (AT) hotmail (DOT) com> wrote

Quote:
Has anyone tried to use DTExec to run a package from the command line?

I am trying to use the /SET switch to configure a Package variable eg:

dtexec /f mypackage.dtsx /set myvariable;myvalue

This fails and tells me that I have not used the package delimiter. So I
tried:

dtexec /f mypackage.dtsx /set \package\variables\myvariable;myvalue

This then fails and tells me that "variables" is not found in the
executables collection - well of course, but I told you to look in the
variables collection...





Reply With Quote
  #3  
Old   
James Saull
 
Posts: n/a

Default Re: Yukon DTExec - 08-04-2004 , 08:40 AM



Thanks Darren - you are right, and it was answered there. Here was what they
said for completeness.

MSFT answered this with:

DTExec /f mypackage.dtsx /set \Package.Variables[myvariable].Value;myvalue

It assumes that your variable is on the package (It most likely the case).

If it is not the case - the path will be slightly different.

You may run Configuration Wizard (from menu DTS --> Configurations...)

and export the variable to an XML file.

You may use it instead of /set command or just to learn about package path
format.

Thanks to Ashvini Sharma and Nikolai Berezansky @ MSFT


"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
The Yukon NGs woud be a better place for this. More info here-


http://communities.microsoft.com/new...r2005&slcid=us


--
Darren Green
http://www.sqldts.com

"James Saull" <nospamjamessaull (AT) hotmail (DOT) com> wrote in message
news:OjdoqmZeEHA.3732 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Has anyone tried to use DTExec to run a package from the command line?

I am trying to use the /SET switch to configure a Package variable eg:

dtexec /f mypackage.dtsx /set myvariable;myvalue

This fails and tells me that I have not used the package delimiter. So I
tried:

dtexec /f mypackage.dtsx /set \package\variables\myvariable;myvalue

This then fails and tells me that "variables" is not found in the
executables collection - well of course, but I told you to look in the
variables collection...







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.