but its maximum row size exceeds the allowed maximum of 8060 bytes. INSERT or UPDATE to this table will fail if the resulting row exceeds the size limit.

Rohit Kochar 46 Reputation points
2021-12-28T19:39:42.377+00:00

Hi Experts,

I am facing this issue of
"but its maximum row size exceeds the allowed maximum of 8060 bytes. INSERT or UPDATE to this table will fail if the resulting row exceeds the size limit."
in production enviornment. Previous developers decided to kepe the design in away to have 641 columns in this table. Moving columns and normalizin is alot more work and needs more time. But since this is a production job, I am looking for some workaround. I have 247 varchar columns and there are lots of columsn with varchar(n). Reading some posts online, is it okay to change some of the varch(n) to varchar(max). is there any other way to fix this issue wthout changing the table design. I would really appreciate any help.

Thanks,
Ro

Developer technologies | Transact-SQL
SQL Server | Other
{count} votes

8 answers

Sort by: Most helpful
  1. Rohit Kochar 46 Reputation points
    2021-12-28T23:15:57.443+00:00

    Here is the exact error:

    SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available.
    Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E14 Description: "Cannot create a row of size 15829 which is greater than the allowable maximum row size of 8060.".

    0 comments No comments

  2. Seeya Xi-MSFT 16,586 Reputation points
    2021-12-29T06:49:06.567+00:00

    Hi @Rohit Kochar ,

    Please refer to this document: https://learn.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server?view=sql-server-ver15#-objects
    The main reason is that your table is not designed properly, and you can split it into several tables later.

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Marina 1 Reputation point
    2022-11-24T15:25:20.287+00:00

    Have you managed to fix this? I have run into a similar situation.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.