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
CREATE TABLE Orders( O_Id int NOT NULL, OrderNo int NOT NULL, P_Id int, OrderDate date DEFAULT GETDATE() // you can set default constraints while creating the table )