数据库名: UFDATA_085_2009
D:\U8SOFT\Admin\SQLFILE10000\Main\Ufdata\Structure\Data_STR_GL_mix_NL.sql
错误信息:
-2147217900
数据库中已存在名为 'aaaaacode_PK' 的对象。
执行如下语句时出错:
alter table code alter column ccode nvarchar(40) not NULL
alter table code add constraint aaaaacode_PK PRIMARY KEY NONCLUSTERED
( iyear asc,
[ccode] ASC
) ON [PRIMARY]
IF EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[GL_accsum]') AND name = N'period')
DROP INDEX [dbo].[GL_accsum].[period]
CREATE UNIQUE NONCLUSTERED INDEX [period] ON [dbo].[GL_accsum]
( iyear asc,
[iperiod] ASC,
[ccode] ASC
) ON [PRIMARY]