1

Msg 511, Level 16, State 1, Line 1
Cannot create a row of size 8104 which is greater than the allowable maximum row size of 8060.

How to resolve this error in SQL Server 2008?

TheGameiswar
  • 27,855
  • 8
  • 56
  • 94

1 Answers1

0

This fails:

create table dbo.test
(
    id char(4000),
    id1 char(4100)
)

This works

create table dbo.test
(
    id char(4000),
    id1 varchar(4100)
)

The issue here is Fixed length data types are restricted to maximum of 8060 bytes (2012) per row. Use variable size data types to overcome this restriction

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
TheGameiswar
  • 27,855
  • 8
  • 56
  • 94