Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataPump DestinationObjectName - Change value via ActiveX

Status
Not open for further replies.

davida37

IS-IT--Management
May 10, 2006
113
GB
Hi,

SQL Server 2000... New to ActiveX (vbscript) and DTS.

I am trying to change the values of some of the DataPump properties via ActiveX (vbscript).

I have managed this for connections:
'Now set the new values
con.Catalog = strToDataMartdb
con.DataSource = strToDataMartServer

BUT I cannot do the same for DataPump properties. Esp, DestinationObjectName and SourceSQLStatement.

I have tried the following:
Tsk.DestinationObjectName = strToTempTableName
and/or
Tsk.DestinationObjectName.value = strToTempTableName

Neither work. How do I reference these. Please Help.

Thankyou.


 
What is in your strToTempTableName? And how are you instantiating Tsk?

I think it needs to be fully qualified if the owner is not dbo (MyDatabase.Owner.MyTable)

Also, you do not need to use the .value in setting the name.

I think the problem is probably elsewhere in your code though. Have a look at this, and post back with ny questions.
Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
I just found that page! Thanks! Its v. helpful
 
That is a great site for DTS. You will more often than not find a great example of whatever you need to do right there :)



Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top