![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am hoping someone out there can help me! I am a relative newbie to DTS programming and am driving myself crazy trying to figure out how to pass the number of records affected by a delete query I have writting in an Execute SQL task to and Active X Script task. Here is the SQL statement: BEGIN TRANSACTION ALTER TABLE MYTABLE DISABLE TRIGGER MyTrigger DELETE FROM MyTable select test = @@rowcount ALTER TABLE MYTABLE ENABLE TRIGGER MyTrigger COMMIT TRANSACTION This allows me to specify an output parameter, which I assign to a global variable. The problem is that no matter what I try the global variable always says 0 after the task executes. Does anyone know what I might be doing wrong and how to correct the problem? Thanks, Ryan |
![]() |
| Thread Tools | |
| Display Modes | |
| |