There's an error in query. It will make every guild created to be auto dismissed.
[DeleteDate] [datetime] DEFAULT getdate() <-- you should not insert date here, instead change it to this (NOTE: remove brackets around date types):
Code:
[DeleteDate] datetime NULL
or run this (if you already recreated the table)
Code:
ALTER TABLE PS_GameData.dbo.Guilds ALTER COLUMN DeleteDate datetime NULL
I also recommend not to re-create tables unless it's necessary. This should solve your problem without recreating the table:
Code:
ALTER TABLE PS_GameData.dbo.Guilds ALTER COLUMN [GuildName] varchar (30) COLLATE Latin1_General_CI_AS NOT NULL;
ALTER TABLE PS_GameData.dbo.Guilds ALTER COLUMN [MasterUserID] varchar (18) COLLATE Latin1_General_CI_AS NOT NULL;
ALTER TABLE PS_GameData.dbo.Guilds ALTER COLUMN [MasterName] varchar (30) COLLATE Latin1_General_CI_AS NOT NULL;
There's no Primary Key on GuildID column as the original table had. Run this to restore it:
Code:
ALTER TABLE PS_GameData.dbo.Guilds ADD CONSTRAINT PK_GuildID PRIMARY KEY CLUSTERED (GuildID)