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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting DTS global Variables

Status
Not open for further replies.

dndaughtery

Programmer
Jan 25, 2006
67
US
Is it possible to set global variable in a DTS package with data from a table in the database? If so how? Use SQL in activex? Set global variable from a sproc?
 
I tried to using dynamic properties once to set the name of a file I was writing but it only worked the first time. After the first time it used the same name and overwrote the old file.

Know of any good tutorials online about dynamic properties? i plan on ordering a book on DTS programming tomorrow since I can't find them in any bookstores.
 
So does that mean that you can't set a dts package to run at a certain time everyday and create a different filename each day without going into the package and executing the dynamic properties?
 
yes,

you can use a query, I have this for one of them
select convert(varchar,getdate,112)
and I use that later on to create a filename

in your dynamic Properties Task use query as sourcetype

make sure it's the first thing and create a workflow (those green arrows) to the next task

Denis The SQL Menace
SQL blog:
Personal Blog:
 
can i then use the dts global variable as data that can be inserted into a table, in an sql query task object in the dts job?

Aftertaf
We shall prevail, and they shall not
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top