dbTalk Databases Forums  

Global Varibles in Execute SQL Tasks

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


Discuss Global Varibles in Execute SQL Tasks in the microsoft.public.sqlserver.dts forum.



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

Default Global Varibles in Execute SQL Tasks - 11-07-2003 , 11:57 AM






We have designed a DTS package in SQL 2000 that moves data
from the source DB2 to the destination Oracle. As each
row successfully inserts into the destination table, a
flag is changed on the source table to indicate it was
processed. Currently we have an ActiveX script task with
code to set the existing global varibles equal various
properties of the transformation task.

In trying an alternative way to pass the varibles, we set
up "Execute a SQL task" to insert a row into a SQL table
passing the global varibles we set values for in a
previous ActiveX task. We get an error message when we
run the package outside of DTS designer, "One Task
Failed", "Task reported failure on execution"

We are stumped as to why the Execute SQL task fails to
even execute.



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

Default Re: Global Varibles in Execute SQL Tasks - 11-07-2003 , 12:22 PM






And the text of the statement is ?
Try enabling logging in the package
What is the structure you are trying to insert into ?
What are the values you are trying to insert ?

--
--

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

"Mary" <Mary_Scheffler (AT) urscorp (DOT) com> wrote

Quote:
We have designed a DTS package in SQL 2000 that moves data
from the source DB2 to the destination Oracle. As each
row successfully inserts into the destination table, a
flag is changed on the source table to indicate it was
processed. Currently we have an ActiveX script task with
code to set the existing global varibles equal various
properties of the transformation task.

In trying an alternative way to pass the varibles, we set
up "Execute a SQL task" to insert a row into a SQL table
passing the global varibles we set values for in a
previous ActiveX task. We get an error message when we
run the package outside of DTS designer, "One Task
Failed", "Task reported failure on execution"

We are stumped as to why the Execute SQL task fails to
even execute.





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.