dbTalk Databases Forums  

automate GV

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


Discuss automate GV in the microsoft.public.sqlserver.dts forum.



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

Default automate GV - 04-04-2006 , 08:09 AM






I use ISQLW in batch mode to load data from a SQL script. In this step, a GV
is assigned to isqlw. Problem is, I can only run this by manually pasting
isqlw -S phlprdsql01 -d Triactive -E -i c:\temp\triactive\test.sql -o
c:\temp\triactive\test.txt into a cmd prompt. How can I ensure the
automation of this step?

DTSGlobalVariables("gv_isqlw").Value="cmd.exe /c isqlw -S phlprdsql01 -d
Triactive -E -i c:\temp\triactive\test.sql -o c:\temp\triactive\test.txt"

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

Default Re: automate GV - 04-04-2006 , 02:21 PM






Hello SQLcat,

I am not too sure what you want but it looks as though you are mashing together
ISQL and DTS and want to paramterise the command line string. If this is
the aim then have a look here

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)



Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
I use ISQLW in batch mode to load data from a SQL script. In this
step, a GV is assigned to isqlw. Problem is, I can only run this by
manually pasting isqlw -S phlprdsql01 -d Triactive -E -i
c:\temp\triactive\test.sql -o c:\temp\triactive\test.txt into a cmd
prompt. How can I ensure the automation of this step?

DTSGlobalVariables("gv_isqlw").Value="cmd.exe /c isqlw -S phlprdsql01
-d Triactive -E -i c:\temp\triactive\test.sql -o
c:\temp\triactive\test.txt"




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.