![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm building a DTS Package on the fly saving the package and then actually running it with a stored proc so i can run it the package asynchronously. I don't want the DTS cluttering up the server so can I delete a package from code. I thought about just saving the package overitself each time but there are times where the same user may run the program multiple times at once on the same machine so that likely wouldn't work... Anyway if anyone can tell me how to delete a DTS package from VB I'd really appreciate it. Shoot even a stored proc to delete it would work... thanks Adam |
#3
| |||
| |||
|
|
Then why no save your package to structured storage file? In any event have you looked at BOL and the object model? Start here mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\dtsprog.chm::/dtspmethjz_9l44.htm -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "Adam Cain" <AdamCain (AT) discussions (DOT) microsoft.com> wrote I'm building a DTS Package on the fly saving the package and then actually running it with a stored proc so i can run it the package asynchronously. I don't want the DTS cluttering up the server so can I delete a package from code. I thought about just saving the package overitself each time but there are times where the same user may run the program multiple times at once on the same machine so that likely wouldn't work... Anyway if anyone can tell me how to delete a DTS package from VB I'd really appreciate it. Shoot even a stored proc to delete it would work... thanks Adam |
#4
| |||
| |||
|
|
Sorry I'm kinda new to DTS. What is a structured storage file?Is that the .dts file you can save a package to? That's the one. |
#5
| |||
| |||
|
|
In message <13C94EAA-2F3B-46F2-AA10-173136CB3CFD (AT) microsoft (DOT) com>, Adam Cain <AdamCain (AT) discussions (DOT) microsoft.com> writes Sorry I'm kinda new to DTS. What is a structured storage file?Is that the .dts file you can save a package to? That's the one. You don't actually have to save a package to execute it, which may save you deleting it afterwards. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#6
| |||
| |||
|
|
Darren, you defintely got my attention. How can I run a package asynchronously without saving it to run it through a stored procedure? |
![]() |
| Thread Tools | |
| Display Modes | |
| |