I need to change the VARCHAR
length from 20 to 25 in a code column in a library table in SQL Server 2014, but SSMS wants to DROP and RE-CREATE all my tables where the library table in question is linked to.
Is there a way to change the VARCHAR
length of a PRIMARY KEY without dropping all the tables?
Best Answer
As you are increasing the length you can just do an alter column, for example:
Further reading on the
ALTER TABLE
syntax at https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-table-transact-sql