dbTalk Databases Forums  

Retrive SQL Statement

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


Discuss Retrive SQL Statement in the microsoft.public.sqlserver.dts forum.



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

Default Retrive SQL Statement - 01-27-2005 , 03:43 PM






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

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

Default Re: Retrive SQL Statement - 01-27-2005 , 03:56 PM






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

Quote:
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



Reply With Quote
  #3  
Old   
Ed
 
Posts: n/a

Default Re: Retrive SQL Statement - 01-27-2005 , 04:11 PM



it works...
then I would like to know why sometimes I need to use .customtask, sometimes
i don't

Ed

"Allan Mitchell" wrote:

Quote:
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




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

Default Re: Retrive SQL Statement - 01-27-2005 , 04:19 PM



it's the class specific properties of the task.



--



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

Quote:
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






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.