![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've created a Dynamic Properties Task that uses global variables to substitute the server name and database name into the connections and tasks of my DTS package. The global variables worked great for setting the server name property of the connections (which were values), but now I have a property for my task that's a SQL statement like "delete from [DestinationDatabase].[dbo].[PM00100]". Is there any way to embed a global variable into the query for DestinationDatabase? If not, what are my options? I'm using constants for my global variables. |
#3
| |||
| |||
|
|
Build it up in an Active Script task Global Variables and SQL statements in DTS (http://www.sqldts.com/Default.aspx?205) -- -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "David Morrison" <me (AT) nospam (DOT) com> wrote in message news:O9kCFdVpDHA.1084 (AT) tk2msftngp13 (DOT) phx.gbl... I've created a Dynamic Properties Task that uses global variables to substitute the server name and database name into the connections and tasks of my DTS package. The global variables worked great for setting the server name property of the connections (which were values), but now I have a property for my task that's a SQL statement like "delete from [DestinationDatabase].[dbo].[PM00100]". Is there any way to embed a global variable into the query for DestinationDatabase? If not, what are my options? I'm using constants for my global variables. |
#4
| |||
| |||
|
|
Can you direct me to a good source for figuring out how to do that? I'm not familiar with scripting languages. "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:O6p3swVpDHA.3688 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Build it up in an Active Script task Global Variables and SQL statements in DTS (http://www.sqldts.com/Default.aspx?205) -- -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "David Morrison" <me (AT) nospam (DOT) com> wrote in message news:O9kCFdVpDHA.1084 (AT) tk2msftngp13 (DOT) phx.gbl... I've created a Dynamic Properties Task that uses global variables to substitute the server name and database name into the connections and tasks of my DTS package. The global variables worked great for setting the server name property of the connections (which were values), but now I have a property for my task that's a SQL statement like "delete from [DestinationDatabase].[dbo].[PM00100]". Is there any way to embed a global variable into the query for DestinationDatabase? If not, what are my options? I'm using constants for my global variables. |
![]() |
| Thread Tools | |
| Display Modes | |
| |