Home All Groups Group Topic Archive Search About

String or binary data will be truncated. How?

Author
30 Jun 2006 9:34 AM
Waldy
Hi there,
              I am having trouble with a stored procedure that is reporting
a data truncation error when I insert into table.  How can there be data
truncation when I am using the same local variable types in the insert
statement as are in the table structure?

Author
30 Jun 2006 9:38 AM
MC
Why dont you post your code here? Or, if you prefer, example and we can look
at it. It seems there is at least some implicit conversion going on but
thats just a guess....


MC


Show quote
"Waldy" <wa***@notmail.com> wrote in message
news:u9kDbhCnGHA.4620@TK2MSFTNGP05.phx.gbl...
> Hi there,
>              I am having trouble with a stored procedure that is reporting
> a data truncation error when I insert into table.  How can there be data
> truncation when I am using the same local variable types in the insert
> statement as are in the table structure?
>
Author
30 Jun 2006 9:39 AM
Immy
Can you post DDL pls!

Show quote
"Waldy" <wa***@notmail.com> wrote in message
news:u9kDbhCnGHA.4620@TK2MSFTNGP05.phx.gbl...
> Hi there,
>              I am having trouble with a stored procedure that is reporting
> a data truncation error when I insert into table.  How can there be data
> truncation when I am using the same local variable types in the insert
> statement as are in the table structure?
>
Author
30 Jun 2006 9:45 AM
Waldy
"Immy" <therealasianb***@hotmail.com> wrote in message
news:e%23wAMkCnGHA.4728@TK2MSFTNGP05.phx.gbl...
> Can you post DDL pls!

Maybe, if I knew what a DDL was...
Author
30 Jun 2006 9:46 AM
MC
Post your T-SQL code. The one you're using to insert data. If its (too) big,
edit it and post sample code with the same problem.

MC


Show quote
"Waldy" <wa***@notmail.com> wrote in message
news:ekdnlnCnGHA.4540@TK2MSFTNGP02.phx.gbl...
>
> "Immy" <therealasianb***@hotmail.com> wrote in message
> news:e%23wAMkCnGHA.4728@TK2MSFTNGP05.phx.gbl...
>> Can you post DDL pls!
>
> Maybe, if I knew what a DDL was...
>
Author
30 Jun 2006 9:54 AM
Immy
with the structure of the table you are trying to insert into too please :)

Show quote
"MC" <marko_culo#@#yahoo#.#com#> wrote in message
news:e$yaDqCnGHA.4540@TK2MSFTNGP02.phx.gbl...
> Post your T-SQL code. The one you're using to insert data. If its (too)
> big, edit it and post sample code with the same problem.
>
> MC
>
>
> "Waldy" <wa***@notmail.com> wrote in message
> news:ekdnlnCnGHA.4540@TK2MSFTNGP02.phx.gbl...
>>
>> "Immy" <therealasianb***@hotmail.com> wrote in message
>> news:e%23wAMkCnGHA.4728@TK2MSFTNGP05.phx.gbl...
>>> Can you post DDL pls!
>>
>> Maybe, if I knew what a DDL was...
>>
>
>
Author
30 Jun 2006 12:13 PM
Tracy McKibben
Waldy wrote:
> "Immy" <therealasianb***@hotmail.com> wrote in message
> news:e%23wAMkCnGHA.4728@TK2MSFTNGP05.phx.gbl...
>> Can you post DDL pls!
>
> Maybe, if I knew what a DDL was...
>
>
"Data Definition Language", i.e. the CREATE TABLE, etc. statements that
you used to create the objects in your database.

The error you're getting means you're attempting to stuff something into
a column that it won't fit in, and without seeing your table structure
and your code, there is absolutely no way we can tell you where the
problem is.
Author
30 Jun 2006 9:53 AM
Sha Anand
Do you have triggers in that table ?
Make sure that the error msg is not from triggers on that table.

- Sha Anand

Show quote
"Waldy" wrote:

> Hi there,
>               I am having trouble with a stored procedure that is reporting
> a data truncation error when I insert into table.  How can there be data
> truncation when I am using the same local variable types in the insert
> statement as are in the table structure?
>
>
>
Author
30 Jun 2006 3:21 PM
Waldy
Sorry guys, it was an IUE (Idiot user error)!  I had two fields round the
wrong way in the insert statement.

AddThis Social Bookmark Button