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.
| Author |
Topic |
|
danjapro
Starting Member
44 Posts |
Posted - 2006-05-30 : 15:29:49
|
| I am trying to get the Date field in my SQL Query to only return. Date that match todays date. this is waht I have but it produces an error. WHERE (EsnAsset.EffectiveDate LIKE DateTime.Now) |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-05-30 : 15:46:00
|
| WHERE EsnAsset.EffectiveDate >= DATEADD(Day, DATEDIFF(Day, 0, GetDate()), 0) ANDEsnAsset.EffectiveDate < DATEADD(Day, DATEDIFF(Day, 0, GetDate()) + 1, 0)Tara Kizeraka tduggan |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|