![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
Hello, I am trying to create a program flow using DTS. Though I can achive the same thng using SP and a job but want to use DTS.Here is my |
|
I am connecting a global variable as @Rowcnt and running the following query to intialize that SELECT COUNT(*) AS ROW_COUNT FROM S_ORG_EXT_FNX (NOLOCK) WHERE LAST_UPD > ? AND LAST_UPD <= ? I am creating a output variable @Rowcnt int and assigning ROW_CNT to it. AFter this step succeeds, I want to go to next step and run the following |
|
IF @Rowcnt > 0 TRUNCATE TABLE UA_TS_CMS_SELLER_STAGING When I am running the query it says: "Must declare Variable @Rowcnt". Basically I want to know how can I access the global variable, programmtically like if ..else, while statements in a SQL Task in DTS |
|
Thanks in advance SK |
![]() |
| Thread Tools | |
| Display Modes | |
| |