dbTalk Databases Forums  

How to delete DTS package, not from Enterprise Manager

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


Discuss How to delete DTS package, not from Enterprise Manager in the microsoft.public.sqlserver.dts forum.



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

Default How to delete DTS package, not from Enterprise Manager - 02-09-2004 , 08:49 AM






Hi, Guru:

Is there any way to delete a DTS package, I mean, not from Enterprise
Manager? Did anyone try SQL-NS or have any other source code?

Scenario:

I have a VB coding which creates a DTS package and then saves it to SQL
Server, but somehow there is a existing old DTS, at this point, I will get
an error.

I hope,
-.Delete the existing one first
or
-.Update the existing one with the new one


Thanks in advance!



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to delete DTS package, not from Enterprise Manager - 02-09-2004 , 09:04 AM






What about the

RemoveFromSQLServer method of the Package object



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"SQLNewbie" <SQLNewbie (AT) hotmail (DOT) com> wrote

Quote:
Hi, Guru:

Is there any way to delete a DTS package, I mean, not from Enterprise
Manager? Did anyone try SQL-NS or have any other source code?

Scenario:

I have a VB coding which creates a DTS package and then saves it to SQL
Server, but somehow there is a existing old DTS, at this point, I will get
an error.

I hope,
-.Delete the existing one first
or
-.Update the existing one with the new one


Thanks in advance!





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

Default Re: How to delete DTS package, not from Enterprise Manager - 02-09-2004 , 10:06 AM



perfect answer.

Thank you very much!


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
What about the

RemoveFromSQLServer method of the Package object



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"SQLNewbie" <SQLNewbie (AT) hotmail (DOT) com> wrote in message
news:umifZwx7DHA.2056 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hi, Guru:

Is there any way to delete a DTS package, I mean, not from Enterprise
Manager? Did anyone try SQL-NS or have any other source code?

Scenario:

I have a VB coding which creates a DTS package and then saves it to SQL
Server, but somehow there is a existing old DTS, at this point, I will
get
an error.

I hope,
-.Delete the existing one first
or
-.Update the existing one with the new one


Thanks in advance!







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.