Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2006, 03:30 PM
Registered User
 
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default simple DTS question

i have two connections...

source - Access Database
destination - Sql server

i have this test activex script

Code:
Function Main()
set pkg=DTSGlovalVariables.parent
set otask=pkg.Tasks(1)
msg("set object name :"&otask.SourceObjectName)
End Function
i am getting error...object doesnot support this method

any suggestions...

 
Old January 14th, 2006, 10:50 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
Default

That is because The task object has no such property or method. You want Name or Description.

Try using the object browser in the MS Office Macro VB Editor or in VS6 to look at the various members available on the objects. Additionally the object model is documented in the online docs:
http://msdn.microsoft.com/library/de...papps_0jsd.asp
http://msdn.microsoft.com/library/de...thobj_9nhw.asp

Additionally, I am nost certain what you are trying to accomplish by calling the function called msg? There is no such function defined in VBScript. There is a MsgBox, but you only use that for Debugging a DTS package, since it halts the execution of the package.

David Lundell
Principal Consultant and Trainer
www.mutuallybeneficial.com
 
Old January 16th, 2006, 12:04 PM
Registered User
 
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you so much for your reply...i really appreciate it and will try to work on your suggestion.






Similar Threads
Thread Thread Starter Forum Replies Last Post
not at all simple question petergoodman XSLT 0 July 18th, 2008 08:37 AM
Simple Question ironchef Spring 2 April 30th, 2007 09:32 AM
Simple Question ironchef Java GUI 0 September 14th, 2006 04:56 PM
Simple Question dpkbahuguna Java Basics 2 May 19th, 2006 12:05 AM
Simple question happyheart_man Pro VB.NET 2002/2003 0 January 14th, 2004 11:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.