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
 SQL Server Development (2000)
 current_timestamp

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
Go to Top of Page

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2006-03-01 : 11:57:46
No need of Seconds ?

If seconds r needed
Select convert(varchar,getdate(),114)
Go to Top of Page
   

- Advertisement -