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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 datetime function

Author  Topic 

nishithrn
Yak Posting Veteran

58 Posts

Posted - 2003-12-19 : 08:09:00
Hello All,

I would like to assign a fixed time of 09:00am to a variable. How can I do it..???

Tx a lot in adv.....

Regards
Nishith

X002548
Not Just a Number

15586 Posts

Posted - 2003-12-19 : 09:53:48
Understand that time si stored as datetime..but you could


DECLARE @x datetime
SELECT @x = '9:00'
SELECT @x, CONVERT(varchar(8),@x,8)





Brett

8-)
Go to Top of Page
   

- Advertisement -