1、删除主键
ALTER TABLE TableName DROP CONSTRAINT PKname
2、改字段长度
ALTER TABLE TableName ALTER COLUMN PKcolname char(15) NOT NULL
3、恢复主键
ALTER TABLE [dbo].[TableName] WITH NOCHECK ADD
CONSTRAINT [PKname] PRIMARY KEY CLUSTERED
(
[PKcolname]
) ON [PRIMARY]