THIS TOPIC APPLIES TO:SQL Server (starting with 2016)Azure SQL DatabaseAzure SQL Data Warehouse Parallel Data Warehouse
You can modify the data type of a column in SQL Server 2016 by using SQL Server Management Studio or Transact-SQL.
Modifying the data type of a column that already contains data can result in the permanent loss of data when the existing data is converted to the new type. In addition, code and applications that depend on the modified column may fail. These include queries, views, stored procedures, user-defined functions, and client applications. Note that these failures will cascade. For example, a stored procedure that calls a user-defined function that depends on the modified column may fail. Carefully consider any changes you want to make to a column before making it.
In Object Explorer, right-click the table with columns for which you want to change the scale and click Design.
Select the column for which you want to modify the data type.
In the Column Properties tab, click the grid cell for the Data Type property and choose a new data type from the drop-down list.
On the File menu, click Savetable name.
When you modify the data type of a column, Table Designer applies the default length of the data type you selected, even if you have already specified another. Always set the data type length for to the desired value after specifying the data type.
If you attempt to modify the data type of a column that relates to other tables, Table Designer asks you to confirm that the change should be made to the columns in the other tables as well.