![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
In the DTS package, how do I change the file location dynamcially? I need file location to be changed depending on what server the DTS package running on. I am using @@servername for this purpose. This DTS package is very simple. It is importing a TEXT file into a SQL Server table. Currently, the path of the file is hard coded. Is there a way I can replace the hard coded path to @Path (which holds the value) variable? See the code below. Thanks for your help. select @Path = case @@servername when 'A' then '\\server1\folder1\Myfile.txt' when 'B' then '\\server2\folder2\Myfile.txt' when 'C' then '\\server3\folder3\Myfile.txt' end *** Sent via Developersdex http://www.developersdex.com *** |
#5
| |||
| |||
|
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |