forum

Home / DeveloperSection / Forums / Alter SQL Server table column width with indexes

Alter SQL Server table column width with indexes

marcel ethan198406-May-2013
Hi Expert!

I am using SQL Server 2008 and need to alter a large number of columns across many tables from decimal(9,3) to decimal(12,6)

The issue I currently have is that some tables have several indexes on these columns and the alter statement fails due to the index.

Is there a way to alter the column without losing the index?

I am altering the column as follows:

alter table [TABLE_NAME] alter column [Conf_Tonnes] decimal(12,6) not  null

Thanks in advance!

Updated on 06-May-2013

Can you answer this question?


Answer

1 Answers

Liked By