更新:感谢您的建议。第一个给了我解决方案的想法。这就是我所做的:
1) CREATE TABLE [MemberTemp] (
[ID] [int] IDENTITY(1,1) NOT NULL,
[PublicCertificate] [varbinary](max) NULL
)
2) SET IDENTITY_INSERT [MemberTemp] ON
3) INSERT INTO [MemberTemp] ( [ID], [PublicCertificate] )
SELECT [ID], [PublicCertificate] FROM [Member]
4) ALTER TABLE [Member] DROP COLUMN [PublicCertificate]
5) ALTER TABLE [Member] ADD [PublicCertificate] VARBINARY(MAX)
6) I went to the clustered index ran Rebuild to free space...
7) UPDATE [Member] SET [PublicCertificate] = [MemberTemp].PublicCertificate
FROM [Member]
INNER JOIN [MemberTemp] on [Member].[ID] = [MemberTemp].ID
砰! 做到了。