How do I alter the precision of a decimal column in Microsoft SQL Server?

ALTER TABLE Testing ALTER COLUMN TestDec decimal(16,1)

Just put decimal(precision, scale), replacing the precision and scale with your desired values.

I haven’t done any testing with this with data in the table, but if you alter the precision, you would be subject to losing data if the new precision is lower.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)