dbTalk Databases Forums  

Running DTS Packages

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


Discuss Running DTS Packages in the microsoft.public.sqlserver.dts forum.



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

Default Running DTS Packages - 11-11-2003 , 05:18 PM






I am trying to run DTS Packages through VB .NET. Each
time I attempt to run the package I get the following
error: "Cannot find specified package in the storage
location specified. Error -2147220460 (80040414)."

I have: updated all instances to sp3; reordered the
switches(/E /M /G /F) to be in the same order as
discussed in the dtsrun help and decreased the spaces
between switches to no avail. I have also attempted to
run the package by initiating a process for dtsrun in the
application, imported the dtspackage reference and
executed as a new dts.package and executed the package
through the commandline without success.

The package does exist. Does anyone have any
suggestions? What am I missing? Thanks for your help.

SCS

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

Default Re: Running DTS Packages - 11-12-2003 , 08:53 AM






Can you show us the part of your code where you load the package up ?

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"SCS" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am trying to run DTS Packages through VB .NET. Each
time I attempt to run the package I get the following
error: "Cannot find specified package in the storage
location specified. Error -2147220460 (80040414)."

I have: updated all instances to sp3; reordered the
switches(/E /M /G /F) to be in the same order as
discussed in the dtsrun help and decreased the spaces
between switches to no avail. I have also attempted to
run the package by initiating a process for dtsrun in the
application, imported the dtspackage reference and
executed as a new dts.package and executed the package
through the commandline without success.

The package does exist. Does anyone have any
suggestions? What am I missing? Thanks for your help.

SCS



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

Default Re: Running DTS Packages - 11-12-2003 , 02:46 PM



I have resolved this issue by taking some advice from another thread. I simplified the code by eliminating the /G switch and saving the dts package under a new name to eliminate multiple versions. As for the code, below I show a sample of the code I execute within a VB program. "proImportData" is declared as a new process. I am now able to execute without error

strDTSArgument = "/E /M" & quotes & "*********" & quotes & " /F" & quotes & ProgramPath() & "\IRIS\RAG Data\DTSPackages\Import RAG Data.dts" & quote

With proImportData.StartInf
.FileName = DTSPat
.Arguments = strDTSArgumen
.UseShellExecute = Tru
.CreateNoWindow = Fals
.ErrorDialog = Tru
.ErrorDialogParentHandle = Me.Handl
End Wit

proImportData.Start(
proImportData.WaitForExit(

Thank

SC


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.