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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help with Store Procedure - check server time

Author  Topic 

supra
Starting Member

1 Post

Posted - 2011-01-18 : 18:48:34
Help writing a store procedure..
If the sql server time is before 4 a.m. return a '0' and if after 4 a.m. return a '1'

Thanks


supra

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-18 : 19:01:20
Please show us what you have so far as this is a very basic problem and is likely homework. We need to see your effort before helping out with this.

Do you know about GETDATE()? How about IF?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -