dbTalk Databases Forums  

DTS Package Import

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


Discuss DTS Package Import in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package Import - 05-13-2005 , 01:23 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.



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

Default Re: DTS Package Import - 05-13-2005 , 01:45 PM






I think, EPM is the only way to add dts packages


Reply With Quote
  #3  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: DTS Package Import - 05-13-2005 , 02:07 PM



Hi dm4714,

I would prefer a real name to address.

"dm4714" <spam (AT) spam (DOT) net> wrote
Quote:
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?
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




Reply With Quote
  #4  
Old   
dm4714
 
Posts: n/a

Default Re: DTS Package Import - 05-16-2005 , 10:47 AM



Thanks for the feedback.

I was able to locate
http://www.nigelrivett.net/DTS/s_Loa...eToServer.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.





"Helge C. Rutz" <news050424 (AT) nurfuerspam (DOT) de> wrote

Quote:
Hi dm4714,

I would prefer a real name to address.

"dm4714" <spam (AT) spam (DOT) net> wrote
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?

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




Reply With Quote
  #5  
Old   
dm4714
 
Posts: n/a

Default Re: DTS Package Import - 05-16-2005 , 11:26 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.



"dm4714" <spam (AT) spam (DOT) net> wrote

Quote:
Thanks for the feedback.

I was able to locate
http://www.nigelrivett.net/DTS/s_Loa...eToServer.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.





"Helge C. Rutz" <news050424 (AT) nurfuerspam (DOT) de> wrote in message
news:3ekc80F3kaeuU1 (AT) individual (DOT) net...
Hi dm4714,

I would prefer a real name to address.

"dm4714" <spam (AT) spam (DOT) net> wrote
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?

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






Reply With Quote
  #6  
Old   
dm4714
 
Posts: n/a

Default Re: DTS Package Import - 05-17-2005 , 12:31 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.




Reply With Quote
  #7  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: DTS Package Import - 05-17-2005 , 04:12 PM



dm4714 wrote:
Quote:
Anyone know of a way to force only one version of a DTS package
within a structured storage file? Currently, I delete the .DTS file in between saving.
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



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.