Is there a way to set the default value of a column to DateTime.Now in Sql Server?
DateTime.Now
Example:
table Event Id int (auto-increment) not null Des
Add a default constraint with the GETDATE() function as value.
ALTER TABLE myTable ADD CONSTRAINT CONSTRAINT_NAME DEFAULT GETDATE() FOR myColumn