|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
| I have a SP where i have given SET ANSI_WARNINGS ON. Inside the SP i am creating a temp table (# table) where i am inserting a record which is greater than its defined length. i.e the column of temp table is nvarchar(30) and i am trying to insert 31 characters. In one server the string data is truncated to 30 chars and inserted whereas when i execute the same in another server it is giving error like String or binary data would be truncated. Please provide the reason for this
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:06 AM
Points: 1,134,
Visits: 818
|
|
Hi ! Increase the lenght of your column.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
Thanks for the response. But my query is why the record is getting inserted in one Server by truncating the last character and why it is throwing the error in another server.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 12:03 AM
Points: 2,555,
Visits: 2,587
|
|
Is the SET option defined at the PROCEDURE level?
--Ramesh
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
| Yes it is set in Procedure
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, January 28, 2013 4:23 AM
Points: 1,
Visits: 7
|
|
| yes the set option is defined at the procedural level
|
|
|
|