all groups > sql server data warehouse > january 2005 >
You're in the

sql server data warehouse

group:

FileTime


FileTime uhway
1/26/2005 1:31:11 PM
sql server data warehouse: Is there a SQL function to get FileTime?

Filetime is a 64 bit number representing time(up to nano seconds) from
January 1, 1601 to what ever the time right now.

In C++/C# etc, you have functions to get his value or to convert file time
in system time. Ex;: Getfiletime()

FileTime 127512288251260000 is equivalent to '2005/01/26 16:00:25.126'

[quoted text, click to view]
Re: FileTime Francesco Anti
1/28/2005 12:04:41 PM
You can use DATEDIFF(ms,startdate, GETDATE())

where ms stands for milliseconds, startdate is a your own starting date, and
getdate is the system function that returns the current date, up to
milliseconds.

Francesco Anti

[quoted text, click to view]

Re: FileTime JohnnyAppleseed
1/28/2005 12:19:54 PM
One thing to remember is that since SQL Server DateTime has less reolution,
you can do a direct comparison.

[quoted text, click to view]

AddThis Social Bookmark Button