zenweezil
09-15-2005, 11:30 PM
How do you set up a SQL Server database column to insert a timestamp automatically?
I set the Data Type to "timestamp" but it inserts this in every row: <Binary>
If I set to "datetime" I cannot figure out how to have it insert the stamp - it just gives NULL.
I know how to pass the time to through an insert but would rather the database field handle it by default.
I set the Data Type to "timestamp" but it inserts this in every row: <Binary>
If I set to "datetime" I cannot figure out how to have it insert the stamp - it just gives NULL.
I know how to pass the time to through an insert but would rather the database field handle it by default.