SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 string or binary would be truncated
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nisar
Starting Member

29 Posts

Posted - 04/01/2012 :  01:07:47  Show Profile  Reply with Quote
Hi,

Some one please advise me regarding this problem.
Problem is that there is stored procedure running for
doing some work and it is working fine when you run
on back end.

When you run from front end through application it pop
up with error 'string or binary would be truncated'
and program stop in mid.

How to trace this.

Regards

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 04/01/2012 :  01:09:35  Show Profile  Reply with Quote
it means its passing a string value which overshoots maximum length of one of fields in database.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

nisar
Starting Member

29 Posts

Posted - 04/01/2012 :  01:22:33  Show Profile  Reply with Quote
yes, thats true but how to know there are 8 table running in that procedure
each table contain almost 15 fields and and 17 records are getting inserted.
and each table has own triggers almost 5,6 per table
Go to Top of Page

nisar
Starting Member

29 Posts

Posted - 04/01/2012 :  01:23:39  Show Profile  Reply with Quote
and again when I m running from back end it is not inserting
record in the table but not giving the error also.

from front end it is giving error
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 04/01/2012 :  01:30:42  Show Profile  Reply with Quote
check whats the difference in values passed when executed from frond end by debugging the app or running sql profiler in backend.
for finding exact place of error, you need to try running each query in batch and check individually. you can also check partial results by putting select statements in between.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

nisar
Starting Member

29 Posts

Posted - 04/01/2012 :  01:31:57  Show Profile  Reply with Quote
I tried all this. ok let me try again
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 04/01/2012 :  10:38:06  Show Profile  Reply with Quote
let us know if you need more guidance

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000