Advertisement

04.22.2008 at 10:07AM PDT, ID: 23343788
[x]
Attachment Details

RETRIEVING GLOBAL VARIABLE ISSUE into source text file connection

Asked by digitalfront in MS SQL DTS, MS SQL Server, VB Script

I have an updated question, since I dont think assigning Global Variables under DTS packages is intuitive at all.  I now have a ext file source connection callled 'Conect1' with a hardcoded txt file.  I would like this file to be dynamically changed in accordance with the date.  He'res what I've done so far

1) Created a global variable called 'Filename' (works)
2)Created a vbscript which updates the filename global variable to filename_NowDate.txt (works)
3)Went into Dynamic Properties Task then clicked ->ADD -->Connections --'Connect1'

Now in the Datasource properties of the Connect1 there's currently a directory of the hardcoded txt file
which needs to get the value of the 'Filename' Global variable

HOW IS THIS DONE, I'm stuck?Start Free Trial
[+][-]04.23.2008 at 03:38PM PDT, ID: 21426186

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL DTS, MS SQL Server, VB Script
Sign Up Now!
Solution Provided By: bhess1
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628