Results 1 to 11 of 11

Thread: WARNING when Adding a column on SQL server existing Table

  1. #1
    Join Date
    Jan 2007
    Posts
    36

    WARNING when Adding a column on SQL server existing Table

    After i run the sql which adds some columns on one particular table.I am getting this Warning

    Warning: The table 'usac499_499A' has been created but its maximum row size (9033) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

    I got a series of the above warning message , but the coulmn wa created.

  2. #2
    Join Date
    Dec 2004
    Posts
    502
    SQL Server will only warn you if you create a table with column definitions exceeding 8060 bytes. It will still allow the table to be created. It is your responsibility to not actually insert enough data to exceed the 8060 byte limit.

  3. #3
    Join Date
    Jan 2007
    Posts
    36
    So in other words that is a normal warning when you add an column to an existing table in SQL server???

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Yes, but you'll get error if data row has more than 8060 bytes.

  5. #5
    Join Date
    Jan 2007
    Posts
    36
    is there any way of working around this, or sql server does not all the coulmns with more that 8066 bytes ??

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    You can use text data type that can store 2g characters.

  7. #7
    Join Date
    Mar 2007
    Posts
    5
    Quote Originally Posted by rmiao
    You can use text data type that can store 2g characters.
    FYI,
    I use a dts package to import an excel sheet to a table. One of the columns in the table is of type Ntext. I have seen this several times when I load the file. The data sometimes needs to be reloaded because the column of type NText only stores part of the data.

  8. #8
    Join Date
    Sep 2002
    Posts
    5,938
    Ntext column can only store 1g characters.

  9. #9
    Join Date
    Apr 2007
    Posts
    1
    Hi, this post is very informative; however I would like some specific information. If someone can help me then please send me a private message. Best Regards,

  10. #10
    Join Date
    Dec 2004
    Posts
    502
    You can send a private message yourself to any one of us.

  11. #11
    Join Date
    Sep 2002
    Posts
    5,938
    Or just post your specific questions here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •