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 |
|
sardinka
Posting Yak Master
142 Posts |
Posted - 2006-03-01 : 11:49:56
|
| How do I extract hhmm and mili seconds from current_timestamp? |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-03-01 : 11:56:25
|
[code]select current_timestamp, datepart(s, current_timestamp), datepart(ms, current_timestamp)[/code]Go with the flow & have fun! Else fight the flow |
 |
|
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-03-01 : 11:57:46
|
| No need of Seconds ?If seconds r neededSelect convert(varchar,getdate(),114) |
 |
|
|
|
|
|