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.
Author |
Topic |
nisar
Starting Member
29 Posts |
Posted - 2012-04-01 : 01:07:47
|
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 runon back end.When you run from front end through application it popup 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
52326 Posts |
Posted - 2012-04-01 : 01:09:35
|
it means its passing a string value which overshoots maximum length of one of fields in database.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
nisar
Starting Member
29 Posts |
Posted - 2012-04-01 : 01:22:33
|
yes, thats true but how to know there are 8 table running in that procedureeach table contain almost 15 fields and and 17 records are getting inserted. and each table has own triggers almost 5,6 per table |
|
|
nisar
Starting Member
29 Posts |
Posted - 2012-04-01 : 01:23:39
|
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 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-04-01 : 01:30:42
|
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 MVPhttp://visakhm.blogspot.com/ |
|
|
nisar
Starting Member
29 Posts |
Posted - 2012-04-01 : 01:31:57
|
I tried all this. ok let me try again |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-04-01 : 10:38:06
|
let us know if you need more guidance------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|