Change datatype of column to uniqueidentifier from bigint

后端 未结 5 1040
遇见更好的自我
遇见更好的自我 2021-01-01 19:05

I want to change the datatype of a column in a table in sql server. I used the following statement:

ALTER TABLE dbo.tbltest  
ALTER COLUMN ID uniqueidentifie         


        
5条回答
  •  醉话见心
    2021-01-01 19:42

    If Singh's answer is not working then you probably have to drop the the table and recreate it.

提交回复
热议问题