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 |
|
Dasman
Yak Posting Veteran
79 Posts |
Posted - 2011-07-08 : 13:50:12
|
| I have this Query working:select convert(VARCHAR(19),(Select TOP 1 Column1 FROM Table1), 20) and outputting:2005-09-14 01:31:52Which is what I want. Now how can I make this convert expression convert a whole column?Thanks,Shijit==========================Pain is Weakness Leaving the Body. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2011-07-08 : 14:45:00
|
[code]SELECT CONVERT(VARCHAR(19),Column1, 20) FROM Table1[/code] |
 |
|
|
Dasman
Yak Posting Veteran
79 Posts |
Posted - 2011-07-08 : 15:00:30
|
| Select CONVERT(VARCHAR(8),StartTime,108) AS HourMinuteSecond From TableDid the trick and converted a datetime to just a time. Very similar to what both of u suggested.Thanks so much ladies!Dasman==========================Pain is Weakness Leaving the Body. |
 |
|
|
|
|
|