dbTalk Databases Forums  

Passing global variables on command line to DTS package in SQL Server 2005

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


Discuss Passing global variables on command line to DTS package in SQL Server 2005 in the microsoft.public.sqlserver.dts forum.



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

Default Passing global variables on command line to DTS package in SQL Server 2005 - 08-09-2006 , 02:45 PM






Hi,
I need to pass a global variable on the command line to a DTS package
which is stored in the SSIS Package Store, when i run the command, i
get this message:

dtexec /DTS "\MSDB\testpackage" /SERVER
server123 /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET
"\Package.Variables[testvariable1].Properties[Value]";"hello_world"

Microsoft (R) SQL Server Execute Package Utility
Version 9.00.1399.06 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

The argument
"\Package.Variables[testvariable1].Properties[Value];hello_world" has
mismatched quotes. please advice


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Passing global variables on command line to DTS package in SQL Server 2005 - 08-11-2006 , 04:08 AM






Hello djyoda,


Can you try something like this

C:\>dtexec /FILE "C:\Package1.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING
OFF /R
EPORTING EW /SET "\Package.Variables[User::v].Properties[Value]";Hello


Allan



Quote:
Hi,
I need to pass a global variable on the command line to a DTS
package
which is stored in the SSIS Package Store, when i run the command, i
get this message:

dtexec /DTS "\MSDB\testpackage" /SERVER
server123 /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /SET
"\Package.Variables[testvariable1].Properties[Value]";"hello_world"
Microsoft (R) SQL Server Execute Package Utility
Version 9.00.1399.06 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
The argument
"\Package.Variables[testvariable1].Properties[Value];hello_world" has
mismatched quotes. please advice




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.