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.
phrankbooth Posting Yak Master
162 Posts
Michael Valentine Jones Yak DBA Kernel (pronounced Colonel)
7020 Posts
select Seconds = datediff(ss,0,'23:55:59')Results:Seconds ----------- 86159(1 row(s) affected)
select Seconds = 3600*substring(TM,1,charindex(':',TM)-1) + datediff(ss,0,'00'+substring(TM,charindex(':',TM),10))from ( Select TM = '55:55:59' ) aResults:Seconds ----------- 201359(1 row(s) affected)
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
Articles
Forums
Blogs
Contact Us
About the Site