Hi,
I'm a bit of a DTS newbie and i've been struggling with this all day now...
I have a DTS task which outputs the contents of a table to a .txt file, i've had to use DTS as i need the column headings as the .txt file is used for an MS Word mail merge.
What i want to do is add a WHERE clause to my SQL statement to only select records from a specific site. I know i'm going to have to use xp_cmdshell and dtsrun via an SP, but how do i pass and accept the variable within the DTS task.
Any help would be appreciated.
Cheers,
Leigh
The problem with common sense is that it isn't that common!
I'm a bit of a DTS newbie and i've been struggling with this all day now...
I have a DTS task which outputs the contents of a table to a .txt file, i've had to use DTS as i need the column headings as the .txt file is used for an MS Word mail merge.
What i want to do is add a WHERE clause to my SQL statement to only select records from a specific site. I know i'm going to have to use xp_cmdshell and dtsrun via an SP, but how do i pass and accept the variable within the DTS task.
Any help would be appreciated.
Cheers,
Leigh
The problem with common sense is that it isn't that common!