Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String or binary data would be truncated
Message
De
13/04/2008 16:04:47
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01310262
Message ID:
01310292
Vues:
34
I succeeded to bypass that issue by adding this in the oCommand.CommandText in my SQLUpdate() and SQLInsert() methods:
                ' In SQL Server, we have to turn off ANSI Warnings as we will have an error
                ' if a field value is greater than the field length
                If nBackend = 2 Then
                    oCommand.CommandText = "SET ANSI_WARNINGS OFF; " + oCommand.CommandText
                End If
However, this is effective for all updates or inserts in a hit. If anyone would have a simpler method where the setting would only be set once per hit, that would be great.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform