all groups > sql server programming > may 2005 >
You're in the

sql server programming

group:

Parameter passing to a DTS package


Parameter passing to a DTS package Banu_tr
5/30/2005 10:51:02 PM
sql server programming: Hi,
I have a DTS package that exports a query result from SQLServer to a text
file . I sheculed it daily.
What I want to do is give the text file name as paramaetric, I mean,
e.g. salesresultddmmhhss.txt ddmmhhss : run time day month hour and second

RE: Parameter passing to a DTS package John Bell
5/31/2005 12:46:04 AM
Hi

The DTSRun utility has a /A parameter that allows you to set the values of a
global variable. This can then be used to set the filename. If the name is
consistent you should be able to do this in code without passing a value.

You may also want to check out http://www.sqldts.com/default.aspx?292 for
renaming a file and http://www.sqldts.com/default.aspx?234

John


[quoted text, click to view]
AddThis Social Bookmark Button