dbTalk Databases Forums  

Programatically saving a DTS Package to a VB file.

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


Discuss Programatically saving a DTS Package to a VB file. in the microsoft.public.sqlserver.dts forum.



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

Default Programatically saving a DTS Package to a VB file. - 02-06-2006 , 04:31 PM






My IT manager wants me to regularly save all of our DTS packages as Visual
Basic files and regularly check them into SourceSafe as they are changed.

Is there a *programmatic* way to save a SQL 2000 DTS package as a VB file?
I would hate to constantly be having to manually open up packages and saving
them. It would be much more convenient to simply write a script that
automatically does this.

I know that you can programmatically save a package as a structured storage
file using VBScript and the SaveToStorageFile method. But this won't do for
my needs, because you can't do a meaningful DIFF of the files to see what's
changed.

Unfortunately, there does NOT appear to be the equivalent of a
"SaveToVisualBasicFile" method. But surely, someone out there has devised a
workaround to this. Please help.

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Programatically saving a DTS Package to a VB file. - 02-06-2006 , 04:51 PM






CadeBryant wrote:
Quote:
My IT manager wants me to regularly save all of our DTS packages as Visual
Basic files and regularly check them into SourceSafe as they are changed.

Is there a *programmatic* way to save a SQL 2000 DTS package as a VB file?
I would hate to constantly be having to manually open up packages and saving
them. It would be much more convenient to simply write a script that
automatically does this.

I know that you can programmatically save a package as a structured storage
file using VBScript and the SaveToStorageFile method. But this won't do for
my needs, because you can't do a meaningful DIFF of the files to see what's
changed.

Unfortunately, there does NOT appear to be the equivalent of a
"SaveToVisualBasicFile" method. But surely, someone out there has devised a
workaround to this. Please help.
There is no easy hidden method for doing this.

There is a tool that came on the SQL 7 CD in the samples folder called
ScriptPkg. That was a VB 6 application that scripted out packages. If
you get a copy of that you could update it to handle SQL 2000 quite easily.

There are documentation tools around, so maybe get that output for
tracking and comparison.

Products
(http://www.sqldts.com/default.aspx?401)


Working with Local Packages you already have versions, stored in SQL
Server. Easier to back than sourcesafe!

The DTS Compare tool from www.Red-Gate.com will compare packages, and be
much more meaningful than any Diff on code files. They recently updated
it, and very slick and fast it is too. Does a nice comparison as well of
course.



--
Darren
http://www.sqldts.com
http://www.sqlis.com


Reply With Quote
  #3  
Old   
CadeBryant
 
Posts: n/a

Default Re: Programatically saving a DTS Package to a VB file. - 02-06-2006 , 05:17 PM



Thanks, Darren.

I don't have the SQL 7 CD. Is there a place online where I can download
ScriptPkg?

"Darren Green" wrote:

Quote:
CadeBryant wrote:
My IT manager wants me to regularly save all of our DTS packages as Visual
Basic files and regularly check them into SourceSafe as they are changed.

Is there a *programmatic* way to save a SQL 2000 DTS package as a VB file?
I would hate to constantly be having to manually open up packages and saving
them. It would be much more convenient to simply write a script that
automatically does this.

I know that you can programmatically save a package as a structured storage
file using VBScript and the SaveToStorageFile method. But this won't do for
my needs, because you can't do a meaningful DIFF of the files to see what's
changed.

Unfortunately, there does NOT appear to be the equivalent of a
"SaveToVisualBasicFile" method. But surely, someone out there has devised a
workaround to this. Please help.

There is no easy hidden method for doing this.

There is a tool that came on the SQL 7 CD in the samples folder called
ScriptPkg. That was a VB 6 application that scripted out packages. If
you get a copy of that you could update it to handle SQL 2000 quite easily.

There are documentation tools around, so maybe get that output for
tracking and comparison.

Products
(http://www.sqldts.com/default.aspx?401)


Working with Local Packages you already have versions, stored in SQL
Server. Easier to back than sourcesafe!

The DTS Compare tool from www.Red-Gate.com will compare packages, and be
much more meaningful than any Diff on code files. They recently updated
it, and very slick and fast it is too. Does a nice comparison as well of
course.



--
Darren
http://www.sqldts.com
http://www.sqlis.com


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.