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 30th, 2004, 09:24 AM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing Datasource

Hi,

Following is a simplified version of my DTS package

1) SQL task picks list of 20 servers from CONNECTION1
2) Active X scripts set the DataSource for CONNECTION2 from the list
prepared in step 1
3) SQL Task is executed on CONNECTION2
4) SQL Task is executed on CONNECTION1
5) Active X scripts loops back to step 2


Every thing works fine except that step 3 executes the SQL Statement on very
first server 20 times. I have checked DataSource value by inserting
necessary msgbox , I get correct result but for some reason SQL Task is
being executed on the very first entry. To me it seems that connection info
is being cached. Is there a way to refresh the cache.

In step 2 instead of setting the DataSource through vbscript I have tried
setting Datasource using Dynamic Properties Task using Globalvariable value
for DataSource.

Somehow I am not inclined to write vb application or vbscript to achive the
goal..

One last thing, when I executes steps manually it works fine.


Thanks

Deepak Khattar



 
Old January 30th, 2004, 11:15 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Hard to tell without seeing the package. Have you got workflow configured to make sure steps execute in required order otherwise all tasks happen in parallel. If you export package to VB file and post here I'll try to debug.



--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSource suhas_feb BOOK: Professional Jakarta Struts 1 June 19th, 2007 09:46 PM
Object datasource VS DataSource SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 July 27th, 2006 10:44 PM
Crystal datasource changing from Access to SQL and tabilda Pro VB 6 4 November 24th, 2005 09:57 AM
Re-link to new datasource tready Excel VBA 0 November 9th, 2005 09:51 AM
DataSource keseln J2EE 1 June 8th, 2003 08:45 PM





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