So, after my attempts at changing a currently existing column to the identity column blew up my table, I had to rescript the table. This time I included the identity column as the primary key. Here's the script:
GO
CREATE TABLE [dbo].[Managers](
[Manager_ID] [smallint] IDENTITY(100,100) NOT NULL,
[FirstName] [varchar](50) NULL,
[LastName] [varchar](5) NULL,
CONSTRAINT [PK_Manager_ID] PRIMARY KEY CLUSTERED
(
[Manager_ID] 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
No comments:
Post a Comment