Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
This automated report is pulling last month's data on the third of each month. Is there a more accurate way since this doesnt account for months with different amount of days?where cb.DoNotDeliverDate between GETDATE()-33 and getdate()-3
quote:Originally posted by sqlobsessed This automated report is pulling last month's data on the third of each month. Is there a more accurate way since this doesnt account for months with different amount of days?where cb.DoNotDeliverDate between GETDATE()-33 and getdate()-3
Thanks, both options work just the same. What exactly is 19000101??Thanks visakh, i need to query your blog before posting questions!
Lamprey
Master Smack Fu Yak Hacker
4614 Posts
Posted - 2012-06-04 : 14:15:49
quote:Originally posted by sqlobsessed Thanks, both options work just the same. What exactly is 19000101??
19000101 (January 1st, 1900) is the same as day Zero (0). In this case it's just a base reference date.
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2012-06-04 : 14:51:09
quote:Originally posted by sqlobsessed Thanks, both options work just the same. What exactly is 19000101??Thanks visakh, i need to query your blog before posting questions!
no problem you're welcome ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/