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.
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.
CREATE TABLE dob.Table_Example (column_a INT ) ; GO INSERT INTO dbo.Table_Example (column_a) VALUES (10) ; GO ALTER TABLE dbo.Table_Example ALTER COLUMN column_a DECIMAL (5, 2) ; GO
Comments
Post a Comment