dbTalk Databases Forums  

more than one GV

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


Discuss more than one GV in the microsoft.public.sqlserver.dts forum.



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

Default more than one GV - 01-04-2005 , 05:24 PM






How can I pass two Global Variables in a dtsrun command?
I'm using coldfusion to run dtsrun with arguments.

<CFSET sArg = "/S ServerSQL /U userName/P pwd /N Import Text File /A
FilePath:8=#cffile.serverDirectory#/#cffile.serverFile# /A
UserUniqueID:8=sampleTest ">
<CFEXECUTE name="C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\DTS\dtsrun.exe" arguments="#sArg#" timeout="1800"/>

Tks in advance
JFB



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

Default Re: more than one GV - 01-05-2005 , 03:55 AM






In message <eqn#MSr8EHA.1404 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, JFB <jfb (AT) newSQL (DOT) com>
writes
Quote:
How can I pass two Global Variables in a dtsrun command?
I'm using coldfusion to run dtsrun with arguments.

CFSET sArg = "/S ServerSQL /U userName/P pwd /N Import Text File /A
FilePath:8=#cffile.serverDirectory#/#cffile.serverFile# /A
UserUniqueID:8=sampleTest "
CFEXECUTE name="C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\DTS\dtsrun.exe" arguments="#sArg#" timeout="1800"/

Tks in advance
JFB


Use several /A which looks like what you have done. To confirm try
DTSRUNUI

Getting Syntax Help for DTSRun
(http://www.sqldts.com/default.aspx?301)

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
JFB
 
Posts: n/a

Default Re: more than one GV - 01-05-2005 , 09:27 AM



Tks Darren for you reply and help.
I fixed the problem... it was just a bad path, dummy
Bad = "C:\Program Files\Microsoft SQLServer\80\Tools\Binn\DTS\dtsrun.exe"
Good = ="C:\Program Files\Microsoft SQLServer\80\Tools\Binn\dtsrun.exe"
Do you see the extra DTS?

JFB


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

Quote:
In message <eqn#MSr8EHA.1404 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, JFB <jfb (AT) newSQL (DOT) com
writes
How can I pass two Global Variables in a dtsrun command?
I'm using coldfusion to run dtsrun with arguments.

CFSET sArg = "/S ServerSQL /U userName/P pwd /N Import Text File /A
FilePath:8=#cffile.serverDirectory#/#cffile.serverFile# /A
UserUniqueID:8=sampleTest "
CFEXECUTE name="C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\DTS\dtsrun.exe" arguments="#sArg#" timeout="1800"/

Tks in advance
JFB


Use several /A which looks like what you have done. To confirm try
DTSRUNUI

Getting Syntax Help for DTSRun
(http://www.sqldts.com/default.aspx?301)

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




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

Default Re: more than one GV - 01-05-2005 , 09:32 AM



Well that would do it, but you shouldn't actually need to qualify the
path to DTSRUN. A full or tools only install will put the Binn folder
on your PATH environment variable. If this was a hand install then maybe
you might want to add this for convenience.

Cheers

Darren


In message <eaXIasz8EHA.3124 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, JFB <jfb (AT) newSQL (DOT) com>
writes
Quote:
Tks Darren for you reply and help.
I fixed the problem... it was just a bad path, dummy
Bad = "C:\Program Files\Microsoft SQLServer\80\Tools\Binn\DTS\dtsrun.exe"
Good = ="C:\Program Files\Microsoft SQLServer\80\Tools\Binn\dtsrun.exe"
Do you see the extra DTS?

JFB


"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote in message
news:PApA2$UVm72BFw+K (AT) sqldts (DOT) com...
In message <eqn#MSr8EHA.1404 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, JFB <jfb (AT) newSQL (DOT) com
writes
How can I pass two Global Variables in a dtsrun command?
I'm using coldfusion to run dtsrun with arguments.

CFSET sArg = "/S ServerSQL /U userName/P pwd /N Import Text File /A
FilePath:8=#cffile.serverDirectory#/#cffile.serverFile# /A
UserUniqueID:8=sampleTest "
CFEXECUTE name="C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\DTS\dtsrun.exe" arguments="#sArg#" timeout="1800"/

Tks in advance
JFB


Use several /A which looks like what you have done. To confirm try
DTSRUNUI

Getting Syntax Help for DTSRun
(http://www.sqldts.com/default.aspx?301)

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #5  
Old   
JFB
 
Posts: n/a

Default Re: more than one GV - 01-05-2005 , 10:00 PM



Tks for the info and help Darren
Rgds
JFB

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

Quote:
Well that would do it, but you shouldn't actually need to qualify the path
to DTSRUN. A full or tools only install will put the Binn folder on your
PATH environment variable. If this was a hand install then maybe you might
want to add this for convenience.

Cheers

Darren


In message <eaXIasz8EHA.3124 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, JFB <jfb (AT) newSQL (DOT) com
writes
Tks Darren for you reply and help.
I fixed the problem... it was just a bad path, dummy
Bad = "C:\Program Files\Microsoft SQLServer\80\Tools\Binn\DTS\dtsrun.exe"
Good = ="C:\Program Files\Microsoft SQLServer\80\Tools\Binn\dtsrun.exe"
Do you see the extra DTS?

JFB


"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote in
message
news:PApA2$UVm72BFw+K (AT) sqldts (DOT) com...
In message <eqn#MSr8EHA.1404 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, JFB <jfb (AT) newSQL (DOT) com
writes
How can I pass two Global Variables in a dtsrun command?
I'm using coldfusion to run dtsrun with arguments.

CFSET sArg = "/S ServerSQL /U userName/P pwd /N Import Text File /A
FilePath:8=#cffile.serverDirectory#/#cffile.serverFile# /A
UserUniqueID:8=sampleTest "
CFEXECUTE name="C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\DTS\dtsrun.exe" arguments="#sArg#" timeout="1800"/

Tks in advance
JFB


Use several /A which looks like what you have done. To confirm try
DTSRUNUI

Getting Syntax Help for DTSRun
(http://www.sqldts.com/default.aspx?301)

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




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.