日期:2014-05-18 浏览次数:20486 次
CREATE TABLE [dbo].[HProducing]( [ProductModel] [varchar](30) NULL, [PartNum] [varchar](30) NOT NULL, [PartName] [varchar](50) NOT NULL, [BathID] [varchar](50) NOT NULL, [StartDate] [datetime] NULL, [Num] [int] NULL, [OperationNumber] [varchar](10) NULL, [StorePosition] [varchar](50) NULL, [NeedLevel] [varchar](2) NULL, [GroupNum] [varchar](20) NULL, [DeliveryDate] [datetime] NULL, [Memo] [varchar](500) NULL, [OperName] [varchar](50) NULL, [LastOperator] [varchar](30) NULL, CONSTRAINT [PK_HProducing] PRIMARY KEY CLUSTERED ( [PartNum] ASC, [BathID] ASC )WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY]
CREATE TABLE [dbo].[HProducing]( [ProductModel] [varchar](30) NULL, [PartNum] [varchar](30) NOT NULL, [PartName] [varchar](50) NOT NULL, [BathID] [varchar](50) NOT NULL, [StartDate] [datetime] NULL, [Num] [int] NULL, [OperationNumber] [varchar](10) NULL, [StorePosition] [varchar](50) NULL, [NeedLevel] [varchar](2) NULL, [GroupNum] [varchar](20) NULL, [DeliveryDate] [datetime] NULL, [Memo] [varchar](500) NULL, [OperName] [varchar](50) NULL, [LastOperator] [varchar](30) NULL, CONSTRAINT [PK_HProducing] PRIMARY KEY CLUSTERED ( [PartNum] ASC, [BathID] ASC ) ON [PRIMARY] ) ON [PRIMARY]
------解决方案--------------------
是你的sqlserver平台不同吧
IGNORE_DUP_KEY = OFF是2005的新特性,2000不支持