Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I have a column with datatype varchar(20) and I would like to change the data type to int identity(1,1).I tried the code below but it shows error near identity(1,1).
alter table mytablealter column userid int identity(1,1) not null