Data truncation while Insertion
The behavior of Sybase and SQL Server is different in the Insert statement.
When we trying to insert additional characters when compare with actual column length,
Sybase automatically truncates the excess characters and inserts.
But SQL Server will raises the below given error.
String or binary data would be truncated.
The statement has been terminated.
If we are trying to insert the more than 10 character for the column which is having
length 10,Sybase will removes the characters from 11th position and inserts the first 10 character
into the table.But SQL Server raises the error.You can understand easily with the
following Screenshots given below.
into the table.But SQL Server raises the error.You can understand easily with the
following Screenshots given below.
No comments:
Post a Comment