MFC classes: CDatabase, CRecordset

K

karol1208

I use method ExecuteSQL (CDatabase class) to execute the query like
this:
"DECLARE @p3 int EXEC myfunction 'mytable', 1, @p3 output
select @p3".
The query is executed currently - the data base is updated. But I
don't know how to get the return value @p3 in my program.
 
G

Gianni Mariani

karol1208 said:
I use method ExecuteSQL (CDatabase class) to execute the query like
this:
"DECLARE @p3 int EXEC myfunction 'mytable', 1, @p3 output
select @p3".
The query is executed currently - the data base is updated. But I
don't know how to get the return value @p3 in my program.

This is really not a comp.lang.c++ question. Try one of the MS news
groups. comp.lang.c++ addresses C++ as specified by the standard and
MFC classes are vendor specific (very much so).

Having said that, I would help you more if I knew but I don't and I
doubt many of the posters on this NG would know the answer off hand.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top