Skip to content
Advertisement

String or binary data would be truncated when using it in a stored procedure

I create this TYPE table in database:

and I need to insert data into it but when I use this code:

and this is my stored procedure:

I get this error:

Msg 8152, Level 16, State 4, Line 5
String or binary data would be truncated

What’s the problem? How can I solve this problem?

Advertisement

Answer

You are trying to insert 5 length character(‘dfdfg’) into your 1 length column [Access] [nvarchar](1).

Increase the value of your column in Table type.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement