473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MFC classes: CDatabase, CRecordset

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.
May 4 '07 #1
1 3329
karol1208 wrote:
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.
May 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: GS | last post by:
Hi Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Desktop Engine on Windows NT 5.1 (Build 2600: Dodatek Service Pack. 1)...
1
by: Jim Walsh | last post by:
I am transitioning to Visual Studio 2003 .NET. To get started, I am converting an existing application that I built using VS 6.0 C++ to C++ .NET. My application uses a CRecordset-derived class...
3
by: | last post by:
Hi, I have a VC7++ VS2003 program that uses CRecordSet to write one record to a SQLAnywhere database via ODBC, a Code Sniplet is contained below, on most machine running the same OS and Build...
0
by: Alfonso Morra | last post by:
Hi, I am storing data in a custom format (binary files on disk). I read the data which is essentially a 2D table - similar to a Db table. My question is that, is it possible to create a...
9
by: Mike C# | last post by:
Hi all, 'Nother question. I have a piece of code that is using the MFC CDatabase object to connect to a database. It executes a SQL statement against SQL Server using the ExecuteSQL()...
3
by: Mike C# | last post by:
Hi all, Have a quick question. I have an app that connects to SQL Server via the MFC CDatabase class. I'm doing bulk loading using the ODBC bulk opns extensions for SQL Server. When I try to...
1
by: Mike C# | last post by:
Hi all, I'm writing a little app that uses ODBC to call a SQL 2K stored procedure several times in a loop, with a different parameter each time. The SP can return no results in some instances. ...
1
by: magix | last post by:
Hi, I'm using Visual C++ and doing INSERT process into mdb file May I know if it is possible to use Absolute path to specifiy mdb file ? where mdb file is at the same directory as the...
4
by: navraj | last post by:
Hi Evreybody I am trying to use the CDatabase class in my dll to connect to SQL but it keeps throwing me an error "CDatabase is not a class or namespcae" or the error "CDataBase : base class...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.