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)
 UNIX_STAMP in SQL Server?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-11-11 : 10:32:18
aigars writes "hi,
is there any datetime format (or function) in SQL Server
that returns amount of seconds spent/gone from 1970 like
unix_stamp in mysql?

TIA,
aigars matulis"

Andraax
Aged Yak Warrior

790 Posts

Posted - 2002-11-11 : 10:37:53
Try this:

select datediff(ss, '19700101', GetDate())

/Andraax

Go to Top of Page
   

- Advertisement -