dbTalk Databases Forums  

Error: DTSrun vs DTSrunUI

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


Discuss Error: DTSrun vs DTSrunUI in the microsoft.public.sqlserver.dts forum.



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

Default Error: DTSrun vs DTSrunUI - 02-03-2005 , 03:49 PM






I have a very simple DTS job that takes one parameter
(Global Variable) and uses this parameter in a simple
select call to a DB2 table. The returned data is then
inserted into a SQL Server table.

Everything works great when I use DTSrunUI to execute
this job. I can even grab the command line syntax using
the Generate button:

DTSRun /S "(local)" /N "ProviderByMPIN" /G "{9F92449C-
4C03-4DA8-91A1-
40602C9AE668}" /A "MPIN":"3"="101" /W "0" /E

When I try to execute the command line syntax from a
command line I get a "General Error -2147217845". I have
also tried to execute it using the xp_cmdshell with no
success. I am not why it would work when called from the
GUI and not from the cmd line.

It runs to completion (inserts 0 rows) when run from the
cmd line and the Global Variable is set to a value that
does not exist on the DB2 table. Not sure why this does
not generate the error. Perhaps this is somehow related
to the OLEDB provider. I am using an IBM OLEDB provider.

Any ideas?

Thanks.
-Scott

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.