First of all you need to take out the AS keywords before the data type name.
Secondly VARCHAR(MAX) is not a datatype - you need to mention some numeric value instead of MAX.
Something like this will work for you...
CREATE TABLE RL_Comments
(
uidComments DECIMAL(5,0) NOT NULL,
dteComments TIMESTAMP,
Account_Number DECIMAL(8,0),
Sort_Code DECIMAL(6,0),
Excess_Explanation VARCHAR(200),
Comments VARCHAR(200),
Sanction_Ref VARCHAR(200),
Total_Limit_Amt DECIMAL(15,0),
Sanction_Expiry DATE,
Diary_Date DATE,
Excess_Report VARCHAR(5),
User_Ref VARCHAR(50)
)
PRIMARY INDEX(uidComments)
↧