November 27, 2015 at 8:34 am
hi all
i have SQL:BatchCompleted with error 2 - Abort
the query is generated from query builder
and executed from web application
and it is fails
when perform tracing
it give me that
727855 Reads
30005 Duration
2 - Abort Error code
can any one tel me how to discover what coz this fail
November 27, 2015 at 1:05 pm
check to see if that querybuilder has a timeout. the 30005 duration looks a bit too suspiciously like a timeout. Just a guess tho!
November 27, 2015 at 3:55 pm
Thanks patrickmcginnis59 10839
can you tel me how to trace "SQL:BatchCompleted"
and find the error details
coz i only got error code without details
November 28, 2015 at 12:37 pm
amrmnabil74 (11/27/2015)
Thanks patrickmcginnis59 10839can you tel me how to trace "SQL:BatchCompleted"
and find the error details
coz i only got error code without details
Yes... transfer the code to SSMS, give it the same parameters that the managed code was using, and troubleshoot from there.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 28, 2015 at 2:10 pm
Yeah, looks very much like the client tool aborted the query because it took too long (timeout). Nothing wrong with the query, it's just taking too long. See if you can tune it, reduce the time it takes.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply