Modify Columns
2016 (13.x) and later versions Azure SQL Managed Instance You
2016 (13.x) and later versions
Azure
SQL Managed Instance
Analytics Platform System (PDW)
You can modify the data type of a column in SQL Server by using SQL Server Management
Studio or Transact-SQL.
Requires ALTER permission on the table.
- In
, right-click the table with columns for which you want to change the
scale and select.
-
Select the column for which you want to modify the data type.
-
In the
tab, select the grid cell for the
property and choose
a new data type from the dropdown list.
- On the
menu, select
table name.
2
Warning
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 can fail. These include queries,
views, stored procedures, user-defined functions, and client applications. These failures
will cascade. For example, a stored procedure that calls a user-defined function that
depends on the modified column can fail. Carefully consider any changes you want to
make to a column before making it.
7
Note