forum

home / developersection / forums / alter sql server table column width with indexes

Alter SQL Server table column width with indexes

marcel ethan 2259 06-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
marcel ethan

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By