|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 2:59 AM
Points: 827,
Visits: 1,517
|
|
hi. the where condition in a dts package is as follows:
where date1 > ? AND date2 <= GETDATE() The qustion sign wont work in sql server 2005 query window. what is the modern day equivalent of this?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 3:14 PM
Points: 2,941,
Visits: 10,481
|
|
Just put in the date and time you want to start with: where date1 > '20070308 02:45:00.000' AND date2 <= GETDATE()
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 2:59 AM
Points: 827,
Visits: 1,517
|
|
| i dont know what date or time should be there though! there is a ? sign, and i dont know what date time that represents in sql server 2000
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 4:46 PM
Points: 1,415,
Visits: 1,206
|
|
The '?' is a parameter placeholder. In Sql2K DTS, it would typically be replaced at runtime by a DTSGlobalVariable, presumably so that the DTS package could be dynamically run for different date/time periods. Is this still a DTS package running under SQL2K5, or has the package migrated to SSIS ?
|
|
|
|