-
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.
-
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.
-
So in other words that is a normal warning when you add an column to an existing table in SQL server???
-
Yes, but you'll get error if data row has more than 8060 bytes.
-
is there any way of working around this, or sql server does not all the coulmns with more that 8066 bytes ??
-
You can use text data type that can store 2g characters.
-
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.
-
Ntext column can only store 1g characters.
-
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,
-
You can send a private message yourself to any one of us.
-
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
-
Forum Rules
|
|