dbTalk Databases Forums  

Execute a DTS package from within a vbs

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


Discuss Execute a DTS package from within a vbs in the microsoft.public.sqlserver.dts forum.



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

Default Execute a DTS package from within a vbs - 08-03-2003 , 09:45 AM






I have a vbs running every night that copies user log
files into one txt file so that the one txt file can be
imported into the database with a DTS package. Is there a
way that I can execute the proper DTS package from within
the vbs or can I execute the vbs in the DTS package itself?
If so, how??


Thanks for any help...

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

Default Re: Execute a DTS package from within a vbs - 08-03-2003 , 02:35 PM






Yep.

from a .vbs file you can simply call a DTS package using the object model

Look up LoadFromSQLServer in BOL and the DTS Package object.

It will look remarkable similar to Page 1 of

Execute a package from a package
http://www.sqldts.com/default.aspx?6,104,215,0,1


--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support 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.