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 |
bash101
Starting Member
4 Posts |
Posted - 2008-01-22 : 06:00:25
|
I have a datetime field in a table in SQL server 2000. In here I am inserting the time ie. UPDATE TABLENAME SET Duration = '03:15:00' WHERE ID = 6 As this is a datetime field it shows up like this after the update:01/01/1900 03:15:00How can I update the table so there is no date showing only the time.Bash. |
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-01-22 : 06:10:38
|
You can't because that's just formatting issue which can be handled by applying proper format while displaying date at the front-end. For example, if your front-end is Visual Basic, you can use FORMAT() function to format this field to show only time, not date.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|