Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String or Binary data would be truncated
Message
From
20/07/2007 04:06:18
 
 
To
20/07/2007 01:14:35
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01242231
Message ID:
01242236
Views:
23
>I don't get this one...
>
>Using SQL 2005 Express
>
>I'm getting a "Error Message: String or Binary data would be truncated" in both the VS 2005 IDE and the SQL Server Management Studio (Dev Version) when I try and edit or delete a record.
>
>The field that is causing the error is a ntext field that contains the HTMLBody of some emails. There is no way the data is too long for the field, besides... it's already in the field.
>
>VFP Edits the records just fine :P
>
>Anyone know is this a limitation of the above mentioned editors, or do I have something objectionable in the field? Something setup wrong?

Fixed the database.

It looks like outlook has null characters in it's data. I added a .Replace("\0","") to the strings when they are being inserted. We'll see if that fixes it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform