Reputation: 20161
I have a simple database with 1 table and 8 columns. The table has about twenty rows in it. See the exact schema below. However when trying to insert certain records I get the following error:
The table definition or the row size exceeds the maximum row size of 8060 bytes.
Why would I be getting this. The table is not that big at all yet. What do you think?
Upvotes: 0
Views: 1457
Reputation: 7412
nvarchar is Unicode and requires 2 bytes per character internally, so your nvarchar(4000) is actually 4000*2 bytes=8000. Add the rest ....
Upvotes: 1