用友小张 IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N’[dbo].[Person]') AND name = N’cPersonName’) DROP INDEX [cPersonName] ON [dbo].[Person] WITH ( ONLINE = OFF ) GO