dbTalk Databases Forums  

convert dts saved as .bas file back to sql server package

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


Discuss convert dts saved as .bas file back to sql server package in the microsoft.public.sqlserver.dts forum.



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

Default convert dts saved as .bas file back to sql server package - 01-26-2005 , 02:19 AM






Hi all
Is it possible to convert a dts package saved as .bas file back to
a sql server package so it can be opened, designed,saved and used again in
sql server?

Thanks alot
Rea



Reply With Quote
  #2  
Old   
Gert E.R. Drapers
 
Posts: n/a

Default Re: convert dts saved as .bas file back to sql server package - 01-26-2005 , 02:39 AM






The generated BAS package contains the lines of code to both execute or save
the package, look for this fragment:
'---------------------------------------------------------------------------
' Save or execute package
'---------------------------------------------------------------------------

'goPackage.SaveToSQLServer "(local)", "sa", ""
goPackage.Execute
tracePackageError goPackage
goPackage.Uninitialize
'to save a package instead of executing it, comment out the executing
package lines above and uncomment the saving package line
set goPackage = Nothing

set goPackageOld = Nothing

End Sub

You could comment out the goPackage.Execute and use the
goPackage.SaveToSQLServer or one of the other variations to save to file or
repository.

GertD (AT) SQLDev (DOT) Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2005 All rights reserved.

"Rea Peleg" <rea_p (AT) afek (DOT) co.il> wrote

Quote:
Hi all
Is it possible to convert a dts package saved as .bas file back to
a sql server package so it can be opened, designed,saved and used again in
sql server?

Thanks alot
Rea





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.