dbTalk Databases Forums  

Import a DTS package into MSDE2000

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


Discuss Import a DTS package into MSDE2000 in the microsoft.public.sqlserver.dts forum.



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

Default Import a DTS package into MSDE2000 - 10-21-2004 , 04:23 AM






Hi i was wodering how can i transfer a developed dts package from sqlserver
to an installed MSDE2000.

Reply With Quote
  #2  
Old   
yaniv
 
Posts: n/a

Default RE: Import a DTS package into MSDE2000 - 10-21-2004 , 06:59 AM








nevermind found a way.
a simple VBScript that imports the file.dts :

Const DTSSQLStgFlag_UseTrustedConnection = 256

dim ServerName,dtsFilePath,userPassword
Dim dtsp, dtsPkg

ServerName = "server"
dtsFilePath = "d:\path\File.dts"
userPassword = ""

Set dtsPkg = CreateObject("DTS.Package")
dtsp = dtsPkg.LoadFromStorageFile(dtsFilePath,userPasswor d)
dtsPkg.SaveToSQLServer ServerName, "","" ,DTSSQLStgFlag_UseTrustedConnection
Set dtsPkg = Nothing


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.