Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 insert problem

Author  Topic 

shubhada
Posting Yak Master

117 Posts

Posted - 2006-07-21 : 09:55:17
I am facing some problem at the time of insertion.
I got the following error

Server: Msg 8152, Level 16, State 9, Line 1
String or binary data would be truncated.
The statement has been terminated.

SQLTeam

nr
SQLTeam MVY

12543 Posts

Posted - 2006-07-21 : 10:08:17
Just means that one (oe more) of your fields is too big for the column.
Check the lengths of the string (and binary if you have them) columns.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2006-07-24 : 08:20:10
to insert the data, increase the width of the column in which u r inserting data.

BMahesh
Go to Top of Page
   

- Advertisement -