if (not exists (select name from syscolumns where id = object_id('Pub_Config') and name = 'LoginTimesValidate')) Begin ALTER TABLE Pub_Config ADD LoginTimesValidate bit default(0) not null EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否开启登录次数验证 type:checkbox tooltip:超过5次锁定30分钟' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Pub_Config', @level2type=N'COLUMN', @level2name=N'LoginTimesValidate' End