Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Since SS 2005 does not have a Time only data type, what do I do if all I need is the time?I want to have two fields: TimeFrom and TimeToDo I use smalldatetime for both of them? But how?
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2009-11-21 : 08:31:26
you can use either datetime or smalldatetime depending on your requirement and set date as 1900-01-01to get the current time only use
quote:Originally posted by absjoe Since SS 2005 does not have a Time only data type, what do I do if all I need is the time?I want to have two fields: TimeFrom and TimeToDo I use smalldatetime for both of them? But how?
Doesn't it support format function?MadhivananFailing to plan is Planning to fail