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 |
shafiqkr
Starting Member
7 Posts |
Posted - 2011-09-22 : 07:39:34
|
i have two datetime fields (startDate,endDate) in a table.In my store procedure i want to compare currentdatetime.....which will less from endDate and greater from startdate; |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2011-09-22 : 09:45:33
|
Please be a bit more specific.What do you have inside the stored procedure - a datetime-variable or what.What do want the stored procedure to do in a condition... No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-22 : 13:19:35
|
sounds likeWHERE GETDATE() BETWEEN StartDate and EndDate------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|