Change the precision of all decimal columns in every table in the database
Posted
by Jon
on Stack Overflow
See other posts from Stack Overflow
or by Jon
Published on 2010-03-31T20:06:58Z
Indexed on
2010/03/31
20:23 UTC
Read the original article
Hit count: 328
sql
|sql-server-2005
Hi all,
I have a rather large database that has alot of decimal columns in alot of tables, the customer has now changed their mind and wants all the numbers (decimals) to have a precision of 3 d.p. instead of the original two. Is there any quick way of going through all the tables in a database and changing any decimal column in that table to have 3.d.p instead of 2 d.p?
The db is on sql 2005.
Any help would be great.
© Stack Overflow or respective owner