473,386 Members | 1,763 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,386 software developers and data experts.

SQLserver programming using MFC CDatabase & Crecordset.

Hello,

I am using MFC classes Cdatabase & Crecordset to open the data source
& do all the updates, everything seems to be working,
However, as soon as I try exiting the application, it gives me a trace
in the output window :
"Error: SQLFreeEnv failure ignored in CDatabase::Free()"
what does that mean? How do you get rid of it?

I thought that I didn't close the CDatabase object, so I close the
CDatabase object & then try exiting the application & it crashes
saying some kind of unhandled exception & breaks at:

RETCODE nRetCodeEnv = ::SQLFreeEnv(pDbState->m_henvAllConnections);
in Dbcore.cpp

I needed help with respect to above problems, Please let me know about
it if anybody had this kind of trouble.

Nilesh.
Jul 20 '05 #1
0 3089

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)...
0
by: how can i insert a image to SQLServer? | last post by:
I want to insert some strings and images which from richTextBox into SQLServer. I could insert it into SQLServer,such as follows: FileStream s=new FileStream...
0
by: Ron | last post by:
Hi there My company is developing a web based document archival and retrieval system, using ASP.NET, c# and sqlserver 2000. This development is in testing at present and all looks promising. ...
1
by: tommydkat | last post by:
Hi! We've switched from Developer Studio 6.0 to Visual Studio .net 2003. Our application compiles fine with Visual Studio .net 2003 but when it runs, it uses the Microsoft ODBC driver as is shown...
0
by: madx_hu | last post by:
Hi all, I am trying to create an Excel sheet using VC++ dotNet. I am using CDatabase and CRecordset calsses and standard SQL queries for creation and Insertion of data in the sheet. I am havin...
2
by: bert.medley | last post by:
I have a problem that I can distill down to the following. 1/ A Visual C++ 6.0 program connects to a MS Access database using an ODBC connection and sleeps for a long time. The connection takes...
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: karol1208 | last post by:
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...

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.