dbTalk Databases Forums  

Execute Sql Task

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


Discuss Execute Sql Task in the microsoft.public.sqlserver.dts forum.



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

Default Execute Sql Task - 10-25-2004 , 03:42 AM






Hello Everyone
i have an ActiveX Script that returns with a global variable then in the
workflow i have an sql task that insert this global variable in a table
so i write in the sql task :
insert into Table values (DTSGlobalVariables("id").value)
It gives me an error "Incorrect Syntax Near DTSGlobalVariables"
Any Idea Whats wrong in this syntax

Thx in Adv



Reply With Quote
  #2  
Old   
Sweden
 
Posts: n/a

Default Execute Sql Task - 10-25-2004 , 07:59 AM






Hi,

You need to define that you want to use a global variable
in this query.

Your query should be (I think):
insert into Table values (?)

Press the parameter button and define parameter #1 to
equal the global variable "id".

Good luck!

Quote:
-----Original Message-----
Hello Everyone
i have an ActiveX Script that returns with a global
variable then in the
workflow i have an sql task that insert this global
variable in a table
so i write in the sql task :
insert into Table values (DTSGlobalVariables("id").value)
It gives me an error "Incorrect Syntax Near
DTSGlobalVariables"
Any Idea Whats wrong in this syntax

Thx in Adv


.


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

Default RE: Execute SQL Task - 01-06-2007 , 03:10 AM



Todd, I think this question was around DTS and not SSIS.

In SSIS certainly it fires the event

SSIS package "Package1.dtsx" starting.
SSIS breakpoint 'Break when the container receives the OnProgress event'
at executable 'Execute SQL Task' has been hit

In DTS quickly set up a package and then plug in this code to fire and
you shall see.

http://msdn2.microsoft.com/en-us/lib...3(SQL.80).aspx

--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"Todd C" <ToddC (AT) discussions (DOT) microsoft.com> wrote


Quote:
To find out, get into the task's Break Points dialog box and set some up,
then execute the package.
--
Todd Chittenden


"Anahi Ludueña" wrote:

Hi people,
I have a doubt: does the Execute SQL Task fire the event OnProgress?
I want to use it from VBasic, but I cannot see it is fired.

Thanks a lot.

Anahi





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.