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)
 TIME FORMAT

Author  Topic 

DENIZ3E
Yak Posting Veteran

56 Posts

Posted - 2005-11-15 : 01:51:59
Hý,
I have got a table and I want to add colomn(Time format --14:00--) in this table but ý DIDNT DO.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-15 : 02:01:41
Use DateTime datatype which stores both Date and Time
There is no TIME data type in SQL Server

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2005-11-15 : 02:07:06
You can use any date for the date portion like '2000-01-01' or even '9999-12-31' when saving the time to the column.

Just ignore the date portion in your front end apps. Or check out BOL on convert

[KH]
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2005-11-15 : 05:52:11
check the Vyas link for working with time...

http://vyaskn.tripod.com/searching_date_time_values.htm

Hope this helps..

Complicated things can be done by simple thinking
Go to Top of Page
   

- Advertisement -