all groups > sql server dts > may 2005 >
You're in the

sql server dts

group:

DTS Package Import


Re: DTS Package Import Helge C. Rutz
5/13/2005 12:00:00 AM
sql server dts: Hi dm4714,

I would prefer a real name to address.

[quoted text, click to view]

You can insert dts files with the COM API of DTS. So you have to write a
simple programm to open the file and write the content to the SQL Server.
You only need the LoadFromStorageFile and SaveToSQLServer methods.
Or you search for free tools doing this for you in the internet.

But there is one limitation - using the API you will lose the formating of
the package and all steps will be graphicaly rearranged.
The EM/Designer is the only way to load with format.

Helge

Re: DTS Package Import Panch
5/13/2005 11:45:39 AM
I think, EPM is the only way to add dts packages
DTS Package Import dm4714
5/13/2005 1:23:27 PM
I have a .dts file that I would like to open/setup within my SQL Server 2000
server.

Does anyone know of a way I can insert the DTS package without using
Enterprise Manager?

I'm trying to automate via Inno Setup and can use OSQL.

Re: DTS Package Import dm4714
5/16/2005 10:47:01 AM
Thanks for the feedback.

I was able to locate
http://www.nigelrivett.net/DTS/s_LoadPackageToServer.html -- which works
fine. But I do have another issue with this...

It would appear the I have to have the .dts file located on the SQL Server
machine instead of locally wherever I'm trying to execute the SP from. Is
there another way or am I doing something wrong?

Basically, I'm trying to have a SETUP program install the DTS package from a
client PC. So both SQL and the .dts file are not on the same box.

There has to be a way to do this as using Enterprise Manager locally on the
user's box allows for me to open and save a package remotely.





[quoted text, click to view]

Re: DTS Package Import dm4714
5/16/2005 11:26:56 AM
Nevermind - I rewrote this as a VBScript so it can be run locally on the
workstation instead of objects instantiated via SP on Server.



[quoted text, click to view]

Re: DTS Package Import Helge C. Rutz
5/17/2005 12:00:00 AM
[quoted text, click to view]

That's the only way I know.
Another solution could be to get the list of packages in the file with GetSavedPackageInfos, check for the latest version then load
and execute that one.

Helge
Re: DTS Package Import dm4714
5/17/2005 12:31:06 PM
Anyone know of a way to force only one version of a DTS package within a
structured storage file? My problem is, when I make changes to the DTS
package, my script won't insert it since I have to tell it which version of
add. Currently, I delete the .DTS file in between saving.


AddThis Social Bookmark Button