![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My only opportunity now with the package is that the SQL Tasks has the hardcoded name and SQL statement that includes the database name. Does anyone know of an easy way to change this information? Can I also use an INI file for this? e.g. you can read the name from ini file and assign it to a global variable. |
#3
| |||
| |||
|
|
Hi, dm4714 wrote: My only opportunity now with the package is that the SQL Tasks has the hardcoded name and SQL statement that includes the database name. Does anyone know of an easy way to change this information? Can I also use an INI file for this? e.g. you can read the name from ini file and assign it to a global variable. Then use an activeX task to replace placeholders in the sql statements with this database name. Helge |
#4
| |||
| |||
|
|
I have a DTS Task that has the following: * Dynamic Property * SQL Task (Truncate a table in SQL) * Connection1 (Input CSV file) * Connection2 (Output SQL Server) This tasks previously did not contain a Dynamic Property and, as you know, the connection details and filename was hardcoded. To remove the hardcoded values, I created a DTS.INI file that has "Servername", "Username", "Password', and "Database" names, etc. under a [DTS] section heading. The Dynamic Property reads the DTS.INI file to obtain its values. I have a SETUP program that will dynamically create the DTS.INI file at installation and will install the DTS package within SQL Server. My only opportunity now with the package is that the SQL Tasks has the hardcoded name and SQL statement that includes the database name. Does anyone know of an easy way to change this information? Can I also use an INI file for this? Any help would be appreciated. |
![]() |
| Thread Tools | |
| Display Modes | |
| |