Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What you see is NOT what you get
Message
De
12/07/2002 08:52:16
 
 
À
11/07/2002 16:52:06
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00677270
Message ID:
00677960
Vues:
34
>The error is "String or binary data would be truncated. The statement has been terminated."
>
>I think this error is being generated because there are fewer columns in the target table and Sql is trying to store into a column that doesn't exist.

You get this error when the data that you're trying to insert is larger than the max. column size. You can use the following script to demonstrate this:

create table x (c char(5))
go
insert into x (c) values ('1234567899')

If you issue SET ANSI_WARNINGS OFF, SQL Server will not throw an error. Instead, the data will be truncated to the size of the column.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform