maui
SSC Veteran
Points: 250
More actions
September 29, 2008 at 10:02 am
#198923
I have an SSIS package I will be running daily, but I want to pass in the date dynamically.
select *
from table
where purchase_date > '2008-09-29 00:00:00'
and purchase_date < '2008-09-29 23:59:59'
Is there a better way I could do this?
ChrisM@Work
SSC Guru
Points: 186127
September 29, 2008 at 10:07 am
#878493
Crosspost, see http://www.sqlservercentral.com/Forums/Topic577820-147-1.aspx
For fast, accurate and documented assistance in answering your questions, please read this article.Understanding and using APPLY, (I) and (II) Paul WhiteHidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply