Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What you see is NOT what you get
Message
From
12/07/2002 08:52:16
 
 
To
11/07/2002 16:52:06
Keith Mah
Money's Mushrooms Ltd.
Surrey, British Columbia, Canada
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00677270
Message ID:
00677960
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform