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 |
|
smitha
Posting Yak Master
100 Posts |
Posted - 2010-01-04 : 06:51:37
|
| hi,the below said statement is not taking the system date.can anybody through light on thisSelect * from tablename where date = 'Date & 'Smitha |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-01-04 : 07:08:34
|
Date and time is provided by GETDATE() in SQL Server. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-01-04 : 07:21:22
|
| Select * from tablename where date >=dateadd(day,datediff(day,0,getdate()),0)and date <dateadd(day,datediff(day,0,getdate()),1)MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|