When storing a datetime value in sql server 2008, using the datetime type, what format will it store the value in?
Is it the number of seconds since 1970 (or whatever)?
On the application side (.net), I am passing in a datetime object.
When I view the table’s rows in query analyzer, will it format it according to my culture settings or am I viewing exactly what is stored in the db?
Internally, according to SQLDenis, they are stored as two integers
http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/how-are-dates-stored-in-sql-server
When you view them in the query analyzer you are seeing evaluated numbers.
It is not stored as “unix time”
http://en.wikipedia.org/wiki/Unix_time