dbTalk Databases Forums  

How do I see the result of calling a stored procedure in VB6 ?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How do I see the result of calling a stored procedure in VB6 ? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Greenberg
 
Posts: n/a

Default How do I see the result of calling a stored procedure in VB6 ? - 07-18-2007 , 07:59 AM






Hello
I'm calling a stored procedure in VB6 using the "execute" command of
rdoquery.
Does anyone know how to check whether or not the execute command was
succesfull or not. Not on the level of whether any rows were updated or
selected but whether any Sql errors occured. VB picks up on any errors
but I want to be able to identify them on the application level and deal
with them myself.
I already tried the "rowsaffected" property but that isn't what I need.
Any ideas anyone ?

David Greenberg


Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How do I see the result of calling a stored procedure in VB6 ? - 07-18-2007 , 04:50 PM






David Greenberg (davidgr (AT) iba (DOT) org.il) writes:
Quote:
I'm calling a stored procedure in VB6 using the "execute" command of
rdoquery.
Does anyone know how to check whether or not the execute command was
succesfull or not. Not on the level of whether any rows were updated or
selected but whether any Sql errors occured. VB picks up on any errors
but I want to be able to identify them on the application level and deal
with them myself.
I already tried the "rowsaffected" property but that isn't what I need.
Any ideas anyone ?
We used have a lot RDO in our system, but it must be four years at least
since we wiped out all of it, and went ADO.

I guess there is an Errors collection, and hopefully there is an
Error.Number there you can look at. Actually, when I think of it there.
I seem to recall that we had code that look an some individual errors.

I hope that you have been able to get hold of the documentation for
RDO, because else this venture into the past is not going to be fun at all.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.