dbTalk Databases Forums  

launch from QA

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


Discuss launch from QA in the microsoft.public.sqlserver.dts forum.



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

Default launch from QA - 09-16-2004 , 12:01 PM






I want to launch a dts package from query analyzer. I'm using code like the
code below and am getting the error below. It works just fine if I use the
same exact code that is in @strsql from a command prompt. Any ideas?

Thanks, Andre

DECLARE @strCommand VARCHAR(8000)
DECLARE @nCubeID INT
SET @nCubeID = 99
SET @strCommand = 'DTSRUN /S SQL01 /E /NCube' + CAST(@nCubeID AS VARCHAR) +
'Refresh'

--select @strCommand

EXEC master.dbo.xp_cmdshell @strCommand




output


------------------------------------------------
----------------------------------------------------------------------------
----------------------------------DTSRun: Loading...
Error: -2147221005 (800401F3); Provider Error: 0 (0)
Error string: Invalid class string
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 713
NULL
(10 row(s) affected)




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

Default Re: launch from QA - 09-18-2004 , 05:40 AM






In article <eizLi7AnEHA.3296 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, Andre wrote:
Quote:
I want to launch a dts package from query analyzer. I'm using code like the
code below and am getting the error below. It works just fine if I use the
same exact code that is in @strsql from a command prompt. Any ideas?

Thanks, Andre

DECLARE @strCommand VARCHAR(8000)
DECLARE @nCubeID INT
SET @nCubeID = 99
SET @strCommand = 'DTSRUN /S SQL01 /E /NCube' + CAST(@nCubeID AS VARCHAR) +
'Refresh'

--select @strCommand

EXEC master.dbo.xp_cmdshell @strCommand

output


------------------------------------------------
----------------------------------------------------------------------------
----------------------------------DTSRun: Loading...
Error: -2147221005 (800401F3); Provider Error: 0 (0)
Error string: Invalid class string
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp
Help context: 713
NULL
(10 row(s) affected)


The error suggests as well as the use of the word "cube" in the string that
the location of execution does not have the dlls necessary to run the package.

Executing in the cmdprompt on your box then package is executed on your box.
Executed in the QA window of a connection to somewhere else then the package
will execute over there. Could this be the issue?




--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know





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.