Search code examples
sqlsql-serverdatabaset-sqlalter-table

Altering column size in SQL Server


How to change the column size of the salary column in the employee table from numeric(18,0) to numeric(22,5)


Solution

  • ALTER TABLE [Employee]
    ALTER COLUMN [Salary] NUMERIC(22,5) NOT NULL