dbTalk Databases Forums  

Insert DTS-Package by VBScript

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


Discuss Insert DTS-Package by VBScript in the microsoft.public.sqlserver.dts forum.



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

Default Insert DTS-Package by VBScript - 11-03-2003 , 08:11 AM






Hi NG,

i got some DTS-packages saved as structured-file (.dts)
Is there a way to store them into a sql-server by vbscript (like an
installroutine)?

kind regards

frank



Reply With Quote
  #2  
Old   
Mario Kropik
 
Posts: n/a

Default Re: Insert DTS-Package by VBScript - 11-03-2003 , 08:58 AM






Hi Frank,

yes, there is a way:

You have to create an Package2 (sql2k) or Package (sql7) object in
vb/vbscript.
Load the DTS object from Storage File with
YourPackage2object.LoadFromStorageFile() function.

Once the DTS package is loaded into VB - Package2 object, you can use member
function YourPackage2object.SaveToSQLServerAs()

For detailed information about DTS Package2 object and functions take a
look at SQL Server online help.

Regards / Grüße aus Stuttgart

Mario


"Frank Matthiesen" <fm (AT) xax (DOT) de> schrieb im Newsbeitrag
news:bo5nmu$16kkb9$1 (AT) ID-151790 (DOT) news.uni-berlin.de...
Quote:
Hi NG,

i got some DTS-packages saved as structured-file (.dts)
Is there a way to store them into a sql-server by vbscript (like an
installroutine)?

kind regards

frank





Reply With Quote
  #3  
Old   
Frank Matthiesen
 
Posts: n/a

Default Re: Insert DTS-Package by VBScript - 11-03-2003 , 10:23 AM



Mario Kropik wrote:
Quote:
Hi Frank,

yes, there is a way:
Hi Mario,

löppt!

Regards / Gruesse aus Bremen

Frank





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.