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

Database

 
GeneralRe: SQL Datatypes Pin
Carlos Antollini17-May-02 14:59
Carlos Antollini17-May-02 14:59 
QuestionSQL Connection - Process or Thread ??? Pin
Dels15-May-02 14:04
Dels15-May-02 14:04 
AnswerRe: SQL Connection - Process or Thread ??? Pin
Dels15-May-02 16:32
Dels15-May-02 16:32 
Generalusing SqlConnection class Pin
14-May-02 22:29
suss14-May-02 22:29 
GeneralRe: using SqlConnection class Pin
Mazdak14-May-02 22:48
Mazdak14-May-02 22:48 
GeneralRe: using SqlConnection class Pin
Ali Ahmad H19-May-02 23:51
Ali Ahmad H19-May-02 23:51 
GeneralRe: using SqlConnection class Pin
SimonS24-May-02 3:43
SimonS24-May-02 3:43 
GeneralDAO+MFC console application, zero records inspite of data in file Pin
samiujan14-May-02 2:25
samiujan14-May-02 2:25 
Hi,

In a nutshell: If i kill an MFC+DAO based server application while it is updating records using ctrl-c, the application exits and the database shows 0 records even though, 2 seconds ago, DaoRecordset::RecordCount() was returning 1000.

It listens for messages on a socket and updates a RecordSet in table "CallLog".

During update, I can see that RecordSet_for_CallLog.GetRecordCount() returns 10, 11 & 12 etc. records as messages are received over the socket, parsed and updated in the dbase.

The problem occurs when I close the application midway while it is updating the Recordset. I can see that previous calls to GetRecordCount() were returning 10, 11, 12 etc. but when I open the database file in MS Access, there are no records in the table CallLog.

If I open the file in Notepad, I can see the Record data in a jumbled form somewhere. So I guess, for some reason, MS Access garbles up the file while exiting, can someone tell me why? I need to handle this to avoid accidental failure.

The main class is not derived from CWinApp. I call the constructor and methods directly in _tmain(). I made the application using the "Win32 Console Application" option in the New project Wizard and later checked the option for MFC support.

I have mainly worked in the Win32 API and on Linux, using a comiler from the commandline, so this MFC+DAO mumbo jumbo is pretty confusing. Even Charles Petzold says so Smile | :)

GeneralRe: DAO+MFC console application, zero records inspite of data in file Pin
markkuk14-May-02 20:14
markkuk14-May-02 20:14 
GeneralRe: DAO+MFC console application, zero records inspite of data in file Pin
samiujan14-May-02 22:59
samiujan14-May-02 22:59 
GeneralRe: DAO+MFC console application, zero records inspite of data in file Pin
markkuk14-May-02 23:20
markkuk14-May-02 23:20 
GeneralRe: DAO+MFC console application, zero records inspite of data in file Pin
samiujan14-May-02 23:57
samiujan14-May-02 23:57 
QuestionWhat's my way? Pin
laphijia13-May-02 19:08
laphijia13-May-02 19:08 
AnswerRe: What's my way? Pin
Aizik Yair13-May-02 23:45
Aizik Yair13-May-02 23:45 
QuestionSQL Question? Pin
Learning12-May-02 2:13
Learning12-May-02 2:13 
GeneralUpdating MSAccess DBs between Versions Pin
Tony Fontenot9-May-02 11:54
Tony Fontenot9-May-02 11:54 
GeneralRe: Updating MSAccess DBs between Versions Pin
chris foote10-May-02 5:51
chris foote10-May-02 5:51 
GeneralRe: Updating MSAccess DBs between Versions Pin
Matt Gullett12-May-02 2:44
Matt Gullett12-May-02 2:44 
GeneralSQL Server IP Pin
Le centriste9-May-02 4:03
Le centriste9-May-02 4:03 
GeneralRe: SQL Server IP Pin
AndyG10-May-02 18:45
AndyG10-May-02 18:45 
GeneralRe: SQL Server IP Pin
David Salter14-May-02 9:39
David Salter14-May-02 9:39 
GeneralCRecordset field access errors Pin
Dels8-May-02 5:36
Dels8-May-02 5:36 
GeneralRe: CRecordset field access errors Pin
Prem Kumar13-May-02 5:01
Prem Kumar13-May-02 5:01 
GeneralSQL Server and Oracle Pin
Not Active7-May-02 2:51
mentorNot Active7-May-02 2:51 
GeneralRe: SQL Server and Oracle Pin
Carlos Antollini7-May-02 3:00
Carlos Antollini7-May-02 3:00 

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.