String or binary data would be truncated.- sql 2000
Hi,
I have field that has data in it. When I attempt to update either using sql languageor by the enterprise manager I get the error "String or binary data would be truncated.".
I have tried to delete all the data in the field without success. I cannot modify this field in any way. I have also increased the column size without success. I can do nothing with this.
I show your update statement with the column "additionalcomments" but I don't see that field in the table, I do see "additionalremarks", is that a typo?
I think you are exceeding the limit in bytes per row (around 8000) not the limit in bytes per column. Suggest converting most of those large char columns to VARCHARS to conserve space. If that is not enough, then consider vertical partition to another table.
NYGiantsFan
ASKER
Can I change a char to a nvar while the server is live? As you can see, this isn't exceeding 8000 char.
My code
UPDATE tbl_form_travelrequestv2
SET additionalremarks = 'American FF# E6599C0
National Car Rental Emerald Number:_663999652
request Mövenpick Hotel Nürnberg Airport for the night of the 31st Mar. '
WHERE (travelrequestid = 15277)
NYGiantsFan
ASKER
I tried to change the fields to nvarchar and am getting this error message:
'tbl_form_travelrequestv2' table
- Unable to modify table.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot create a row of size 10677 which is greater than the allowable maximum of 8060.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.