Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Extending Decimal Range Throws 8k Limit Error

$
0
0

Hi,

I need to extend my decimal field range from decimal(8,4) to decimal(19,4), however, while doing so, it throws the following error

Command

alter table dbo.temp
    alter column field_1 decimal(19,4) NULL

Error Message

Msg 1792, Level 16, State 1, Line 1
Alter table 'temp' failed because the added fixed column might cause existing data to go beyond the maximum allowable table row size of 8060 bytes.

Please note the following:

1. This is in SQL Server 2012 - If I try this in SQL Server 2008 R2, it works fine.

2. If I delete all the data in the table, it still wont let me extend the range.

Let me know if you need any more info.

Thanks..


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>