Click here to Skip to main content
16,006,476 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Query for last rows Pin
3-Jul-01 9:33
suss3-Jul-01 9:33 
GeneralSQL Server Logs Pin
16-May-01 4:33
suss16-May-01 4:33 
GeneralUnable to initialize DAO/Jet db engine Pin
Rob Bechamp16-May-01 3:27
Rob Bechamp16-May-01 3:27 
GeneralMicrosoft OLE DB access to Oracle Database Pin
Chris Meech15-May-01 10:31
Chris Meech15-May-01 10:31 
GeneralRe: Microsoft OLE DB access to Oracle Database Pin
Tomasz Sowinski15-May-01 10:41
Tomasz Sowinski15-May-01 10:41 
GeneralRe: Microsoft OLE DB access to Oracle Database Pin
Chris Meech16-May-01 3:20
Chris Meech16-May-01 3:20 
GeneralData converting from access to excel Pin
Daniel Metor13-May-01 21:10
Daniel Metor13-May-01 21:10 
GeneralCRecordset::Open error - Connection is busy with results for another hstmt Pin
Gaul11-May-01 19:29
Gaul11-May-01 19:29 
I get the error "Connection is busy with results for another hstmt" when I call the CRecordset::Open on an SQLServer database. The code has been working for several years on WATSQL (now Sybase SQLAnywhere) until I switched the database recently to run on SQLServer. Does anyone have an idea what is going on, or what options I may need to set to get rid of this. For instance, in the code below, line (1.) works without problem, while line (2.) fails giving the error above. Both statements were failing on ::SQLExecute(m_hstmt) inside MFC;

1. if (!m_pAssetSet->Open(CRecordset::snapshot))
DisplayError();

2. if (!m_pAssetypeSet->Open(CRecordset::snapshot))
DisplayError();

Also, when I switch the code to call Open with default arguments, both Open statements work, but then my Add/Edit/Update on m_pAssetSet fails right in the bowels of MFC with SQLSetPos on line (1.) as follows:

::SQLSetPos(m_hstmt, 1, wPosOption, SQL_LOCK_NO_CHANGE);

The second error message is something to the effect that an option is invalid. Does anyone have any idea what is causing this? Why should I be getting this even when I call CRecordset::Open with default arguments.

Any suggestions?

Generalquerry execution takes too long Pin
10-May-01 0:12
suss10-May-01 0:12 
GeneralRe: querry execution takes too long Pin
Ranjith14-May-01 10:53
Ranjith14-May-01 10:53 
GeneralRe: querry execution takes too long Pin
Anders Molin15-May-01 11:29
professionalAnders Molin15-May-01 11:29 
QuestionWhat is wrong??? Pin
8-May-01 8:48
suss8-May-01 8:48 
AnswerRe: What is wrong??? Pin
Makub22-May-01 8:47
Makub22-May-01 8:47 
Generalpl Help !! Passing parameter along with SQL query in ADO's Pin
Dhanush7-May-01 23:14
professionalDhanush7-May-01 23:14 
GeneralDBCC Pin
7-May-01 8:44
suss7-May-01 8:44 
GeneralDB_NUMERIC Pin
Nick Blumhardt3-May-01 14:11
Nick Blumhardt3-May-01 14:11 
GeneralRe: DB_NUMERIC Pin
3-May-01 17:52
suss3-May-01 17:52 
GeneralNT Authentication for database connections. Pin
Chris Meech3-May-01 6:25
Chris Meech3-May-01 6:25 
GeneralBuilding a custom server program Pin
Ernesto Moscoso Cam19-Apr-01 7:04
Ernesto Moscoso Cam19-Apr-01 7:04 
GeneralRe: Building a custom server program Pin
3-May-01 17:54
suss3-May-01 17:54 
GeneralSQL Server Filegroups Pin
Des McHugh9-Apr-01 6:43
Des McHugh9-Apr-01 6:43 
GeneralRe: SQL Server Filegroups Pin
Jason Cono14-May-01 9:13
Jason Cono14-May-01 9:13 
GeneralADO _ConnectionPtr Problem Pin
AndyC5-Apr-01 6:43
AndyC5-Apr-01 6:43 
GeneralRemote access to MS Access - Please Help! Pin
Josie Marent3-Apr-01 6:48
Josie Marent3-Apr-01 6:48 
GeneralRe: Remote access to MS Access - Please Help! Pin
Anders Molin8-Apr-01 3:36
professionalAnders Molin8-Apr-01 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.