Ryan
2007-09-13 22:16:02 UTC
Currently, PaymentDate in my table is a SMALLDATETIME and NULL is allowed. I
would like to alter PaymentDate column to be NOT NULL and set its default
value to current date.
I am using the following osql command but it generated an error; could
someone please help?
ALTER COLUMN PaymentDate NOT NULL DEFAULT GETDATE();
would like to alter PaymentDate column to be NOT NULL and set its default
value to current date.
I am using the following osql command but it generated an error; could
someone please help?
ALTER COLUMN PaymentDate NOT NULL DEFAULT GETDATE();