January 6, 2006 at 6:34 am
I can save a DTSpackage as DSTpack.BAS. But, how can I load this file again in my DTS-editor? I can do this with files with .DTS extension.
Greetz,
Hans Brouwer
January 6, 2006 at 8:23 am
See this link on this site:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=19&messageid=18439
January 7, 2006 at 2:23 pm
Look at your VBA code. Do a find on the word "execute". Somewhere in that region of the code is a section where you are given the choice of loading and executing OR saving the DTS package. Comment out the choice you don't want, then run the VBA.
Hope this helps!
January 11, 2006 at 9:44 pm
No you can't, you can only run it as VB code.
January 11, 2006 at 10:14 pm
Done it many times without any problems.
--------------------
Colt 45 - the original point and click interface
February 2, 2006 at 8:57 am
Yeah, why would you say it can't be done when clearly it can. If you read the file created while saving the .bas file you'll see.....
'---------------------------------------------------------------------------
' 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
It can be placed into VBA as well, as long as a refernce to Microsoft DTSPackage Object Library is there, so you can run it in Access instead of VB and it works great.
-Mackin
September 13, 2006 at 6:14 pm
if you save a dtspackage as vba file, can you re-open it in the dts gui?
September 14, 2006 at 4:06 am
The DTS GUI is looking for an object that fits the DTS object model. The VB file has no information about the object model in it.
Modify the "Save" line in the VB code to save the package to SQL Server, or to a .dts file. Then run the VB code and you'll have something to open in the GUI.
--------------------
Colt 45 - the original point and click interface
September 14, 2006 at 3:40 pm
phil,
The orginal question "I can save a DTSpackage as DSTpack.BAS. But, how can I load this file again in my DTS-editor? I can do this with files with .DTS extension."
This is impossible to reopen bas file onto dts editor.
But from what you said it's like having two versions...what's the point?
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply