我查看了其他线程以了解我收到的错误,但我没有看到我在哪里犯了错误,也没有看到任何额外的逗号,这似乎是问题的主要原因。如果有人能指出我犯错的地方,我将不胜感激。
CREATE TABLE Accounts.AdminUsers ( admID INT NOT NULL IDENTITY(1,1)
, admFN VARCHAR(35) NULL
, admLN VARCHAR(35) NULL
, admUserName VARCHAR(64) NOT NULL
, admPass VARCHAR(128) NOT NULL
, admPassIV VARCHAR(32) NOT NULL
, admPassResetDate DATETIME2 NULL
, admEEID VARCHAR(30) NULL
, admEmail VARCHAR(255) NULL
, admAcctEnabled BIT NOT NULL
, admHier HIERARCHYID NOT NULL
, admNumLogins SMALLINT NULL
, admLastLogin DATETIME2 NULL
, admCreateTS DATETIME2 NOT NULL
, admTID TINYINT NOT NULL
, CONSTRAINT PK_Accounts_AdminUsers
PRIMARY KEY CLUSTERED (admID)
, CONSTRAINT DF_Accounts_AdminUsers_admAcctEnabled
DEFAULT (1)
, CONSTRAINT DF_Accounts_AdminUsers_admCreateTS
DEFAULT (CURRENT_TIMESTAMP)
, CONSTRAINT FK_Accounts_AdminUsers_AdminUserTypes
FOREIGN KEY (admTID) REFERENCES Accounts.AdminUserTypes(admTID)
);