![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a Transform Data Task (TDT) in my package connecting to SQL Server, the SQL in the TDT is 'SELECT [PartNo], [Description], SUM([Qty]) AS Total FROM DailyProdTotals where ProdDate >= gsLastUploadDate GROUP BY [PartNo], [Description];', the gsLastUploadDate is a global var, that I retrieve before i execute the TDT, but the TDT says there are no |
|
Much appreciated |
#3
| |||
| |||
|
|
Change gsLastUploadDate to ? You cannot use the global variable name directly. To the SQL parser there is no indiocation that this anything other a column name or other SQL identifier. Darren Green http://www.sqldts.com "Gary Spence" <GarySpence (AT) discussions (DOT) microsoft.com> wrote in message news:A5A82CDE-A2B8-4A63-B9FE-A498136A16F6 (AT) microsoft (DOT) com... I have a Transform Data Task (TDT) in my package connecting to SQL Server, the SQL in the TDT is 'SELECT [PartNo], [Description], SUM([Qty]) AS Total FROM DailyProdTotals where ProdDate >= gsLastUploadDate GROUP BY [PartNo], [Description];', the gsLastUploadDate is a global var, that I retrieve before i execute the TDT, but the TDT says there are no parameters, so I can't save the SQL script in the TDT. Much appreciated |
![]() |
| Thread Tools | |
| Display Modes | |
| |