Hi,
I would like to assign a default value (i.e. current date time) to a DATETIME column in my table. What is the correct syntax for specifying that? In Oracle, I can use SYSDATE, but I don't know if that's possible in SQL Server database.
create table SESSION_INFO (
SESSION_KEY numeric identity,
USERID varchar(32) not null,
STARTED_ON datetime not null
}
Thank you in advance!
I would like to assign a default value (i.e. current date time) to a DATETIME column in my table. What is the correct syntax for specifying that? In Oracle, I can use SYSDATE, but I don't know if that's possible in SQL Server database.
create table SESSION_INFO (
SESSION_KEY numeric identity,
USERID varchar(32) not null,
STARTED_ON datetime not null
}
Thank you in advance!