Re: multiple-step ole db operation generated errors? (Member of pr
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 09:05:55 -0500
If I understood Hidarisei's post correctly, he had simply failed to
assign permissions to execute the stored procedure. In that case, it
probably does not matter what's in those procedures. :-)
I agree that the SET NOCOUNT ON wasn't the problem in this particular case. However, I've seen the DONE_IN_PROC messages prevent ADO apps from getting the SQL Server errors and is why I recommend it as a general practice for ADO applications.
--
Hope this helps.
Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message news:Xns9AAF476A108Yazorman@xxxxxxxxxxxx
Dan Guzman (guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx) writes:I have found the problem. My user rights within SQLServer were not
granting access to execute stored procs.
The fact that the proper exception didn't get thrown is an issue. You
might try adding SET NOCOUNT ON to your stored procedures to see if the
proper exception bubbles up.
If I understood Hidarisei's post correctly, he had simply failed to
assign permissions to execute the stored procedure. In that case, it
probably does not matter what's in those procedures. :-)
My guess is that he is not checking for errors in the right place,
but jogs alone, and tries to get a result set which is not there,
and that's why he get the multi-step error.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Re: multiple-step ole db operation generated errors? (Member of proble
- From: Erland Sommarskog
- Re: multiple-step ole db operation generated errors? (Member of pr
- From: Erland Sommarskog
- Re: multiple-step ole db operation generated errors? (Member of proble
- Prev by Date: Re: multiple-step ole db operation generated errors? (Member of pr
- Next by Date: SQL Profiler - What is ClientProcessID ?
- Previous by thread: Re: multiple-step ole db operation generated errors? (Member of pr
- Next by thread: Certificate Requirements for SQL Data Encryption
- Index(es):
Relevant Pages
|