![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am trying to retrive the info (SQL Statement) from a data pump task. But i got an error It said "Object doesn't support this property or method" Am i MISSING something Dim tsk Dim resul Set tsk = DTSGlobalVariables.parent Set resul = tsk.tasks("DTSTask_DTSDataPumpTask_1") msgbox resul.SourceSQLStatement 'hi.SourceSQLStatement = "Select * from customer" Thanks a lot Ed |
#3
| |||
| |||
|
|
Have a look here Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Ed" <Ed (AT) discussions (DOT) microsoft.com> wrote in message news:2BED80F0-0B41-407C-B482-A98CB632AC13 (AT) microsoft (DOT) com... Hi, I am trying to retrive the info (SQL Statement) from a data pump task. But i got an error It said "Object doesn't support this property or method" Am i MISSING something Dim tsk Dim resul Set tsk = DTSGlobalVariables.parent Set resul = tsk.tasks("DTSTask_DTSDataPumpTask_1") msgbox resul.SourceSQLStatement 'hi.SourceSQLStatement = "Select * from customer" Thanks a lot Ed |
#4
| |||
| |||
|
|
it works... then I would like to know why sometimes I need to use .customtask, sometimes i don't Ed "Allan Mitchell" wrote: Have a look here Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Ed" <Ed (AT) discussions (DOT) microsoft.com> wrote in message news:2BED80F0-0B41-407C-B482-A98CB632AC13 (AT) microsoft (DOT) com... Hi, I am trying to retrive the info (SQL Statement) from a data pump task. But i got an error It said "Object doesn't support this property or method" Am i MISSING something Dim tsk Dim resul Set tsk = DTSGlobalVariables.parent Set resul = tsk.tasks("DTSTask_DTSDataPumpTask_1") msgbox resul.SourceSQLStatement 'hi.SourceSQLStatement = "Select * from customer" Thanks a lot Ed |
![]() |
| Thread Tools | |
| Display Modes | |
| |