I have some tables in my database that have primary keys of type int that I’d like to change to type bigint. What’s the best strategy to accomplish this without dropping/recreating tables and constraints?
These primary keys are being used as foreign keys in other tables, so that will factor in.
In, SSMS, execute bellow steps.
Just uncheck the Option highlighted in the Screenshot. Now you can use the
Alter scriptto change theDDL.