Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String or Binary data would be truncated
Message
De
20/07/2007 04:06:18
 
 
À
20/07/2007 01:14:35
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01242231
Message ID:
01242236
Vues:
24
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform