I manually created a table in our SQL Server, realized the ID column needed to be an nvarchar instead of an int, but wasn't able to change it. I was told I needed to drop the table and re-add it.Before dropping the table, I scripted the CREATE command so I could just edit that to recreate the table to save some time.Now, whenever I attempt to execute the script, I get Line 20: Incorrect syntax near '('.I'm guessing the syntax is still correct, but something is wrong with changing my Primary Key from ID int to LineID nvarchar(10).Could someone tell me how to resolve this?USE [ProductionLine]GO/****** Object: Table [dbo].[Error_Table] Script Date: 08/25/2011 11:36:48 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[Error_Table]( [LineID] [nvarchar](10) NOT NULL, [Date] [datetime] NOT NULL, [WO] [nvarchar](10) NULL, [Module] [nvarchar](10) NULL, [DSO] [nvarchar](10) NULL, [INT1] [nvarchar](10) NULL, [Unit] [nvarchar](10) NULL, [Contact] [nvarchar](50) NULL, [Category] [nvarchar](10) NULL, [Problem] [nvarchar](50) NULL, [Solution] [nvarchar](255) NULL, [Action] [nvarchar](255) NULL, [Actor] [nvarchar](50) NULL, [Acted] [datetime] NULL,CONSTRAINT [PK_Error_Table] PRIMARY KEY CLUSTERED ( [LineID] ASC) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)ON [PRIMARY]) ON [PRIMARY]GO
Thank you,~Joe
Avoid Sears Home Improvement (read why)