Click here to Skip to main content
15,915,509 members
Home / Discussions / Database
   

Database

 
GeneralMultiserver jobs Pin
devvvy6-Jan-04 23:33
devvvy6-Jan-04 23:33 
GeneralError in BeginTransaction method Pin
nthy6-Jan-04 19:52
nthy6-Jan-04 19:52 
GeneralRe: Error in BeginTransaction method Pin
andyharman7-Jan-04 11:21
professionalandyharman7-Jan-04 11:21 
GeneralRe: Error in BeginTransaction method Pin
nthy7-Jan-04 14:24
nthy7-Jan-04 14:24 
Generalsp_depends return value Pin
preinsko6-Jan-04 18:47
preinsko6-Jan-04 18:47 
GeneralRe: sp_depends return value Pin
Mike Dimmick8-Jan-04 5:42
Mike Dimmick8-Jan-04 5:42 
GeneralRe: sp_depends return value Pin
preinsko8-Jan-04 18:00
preinsko8-Jan-04 18:00 
General"Microsoft.Jet.OLEDB.4.0" problem Pin
agrafov6-Jan-04 16:25
agrafov6-Jan-04 16:25 
When I try to access "MS Access" .mdb database using "native" Microsoft.Jet.OLEDB.4.0 provider I'm experiencing a problem with deleting of multiple records from previously retrieved recordset.
Here is an example:
// first, I open database in very usual way using ATL-based classes (mostly generated by OLEDB consumer-template wizard in VS)
CDataSource db;
CDBPropSet dbinit(DBPROPSET_DBINIT);
...................................
dbinit.AddProperty(DBPROP_AUTH_PASSWORD, OLESTR(""));
dbinit.AddProperty(DBPROP_AUTH_USERID, OLESTR("Admin"));
dbinit.AddProperty(DBPROP_INIT_DATASOURCE, (LPOLESTR)szDBName);
dbinit.AddProperty(DBPROP_INIT_MODE, (long)16);
hr = db.Open(_T("Microsoft.Jet.OLEDB.4.0"), &dbinit);
if( SUCCEEDED(hr) )
{
hr = m_session.Open( db );
return hr;
}

// then I use generated accessor class
(something like class CProducts : public CCommand<caccessor<cproductsaccessor> >)
to open a rowset as a result of some SQL statement:
CProducts rs;
rs.Open();

// When I iterate through received recordset, processing data and deleting records using some criteria (or just all of them) like:
while( S_OK == rs.MoveNext() )
{
..................... // do something here
rs.Delete();
}

I receive "DB_S_ENDOFROWSET" just right after the second deletion, even though there is a lot more records in the recordset - without such deletion inside a loop I can successfully traverse entire recordset (all records) with no problems at all.

When I open DataSource using "MDASQL" as a provider instead of "Microsoft.Jet.OLEDB.4.0" everything works just fine (as it is supposed to work).

Initially blamed msjetoledb40.dll module, but installing the latest MSJETOLEDB40 Service Pack SP8 did not solve the problem.

Did I do something wrong, or somebody else had such problem and knew good workaround?

Best regards,
Andrey
GeneralRe: &quot;Microsoft.Jet.OLEDB.4.0&quot; problem Pin
Roger Wright6-Jan-04 20:38
professionalRoger Wright6-Jan-04 20:38 
GeneralADO Fields Delete questions Pin
Vaclav6-Jan-04 13:19
Vaclav6-Jan-04 13:19 
GeneralCross databases Pin
totig6-Jan-04 6:10
totig6-Jan-04 6:10 
GeneralRe: Cross databases Pin
Ian Darling6-Jan-04 6:33
Ian Darling6-Jan-04 6:33 
GeneralAccessing fixed length data field Pin
Andrew Hoole6-Jan-04 1:35
Andrew Hoole6-Jan-04 1:35 
GeneralMillions of records per day Pin
coge5-Jan-04 21:11
coge5-Jan-04 21:11 
GeneralRe: Millions of records per day Pin
DiWa5-Jan-04 21:49
DiWa5-Jan-04 21:49 
GeneralRe: Millions of records per day Pin
Mike Dimmick6-Jan-04 2:49
Mike Dimmick6-Jan-04 2:49 
GeneralRe: Millions of records per day Pin
coge6-Jan-04 9:53
coge6-Jan-04 9:53 
GeneralRe: Millions of records per day [modified] Pin
Marek Grzenkowicz8-Jan-04 6:06
Marek Grzenkowicz8-Jan-04 6:06 
GeneralExport to XLS Pin
mosquitooth4-Jan-04 21:49
mosquitooth4-Jan-04 21:49 
GeneralRe: Export to XLS Pin
chinni16-Jan-09 23:24
chinni16-Jan-09 23:24 
Generalplease help me,my project......... Pin
Ahmed Gaser3-Jan-04 23:15
Ahmed Gaser3-Jan-04 23:15 
GeneralRe: please help me,my project......... Pin
preinsko6-Jan-04 18:55
preinsko6-Jan-04 18:55 
GeneralDELETE [table] gives syntax error Pin
Vaclav3-Jan-04 12:35
Vaclav3-Jan-04 12:35 
GeneralRe: DELETE [table] gives syntax error Pin
Guillermo Rivero3-Jan-04 17:45
Guillermo Rivero3-Jan-04 17:45 
GeneralRe: DELETE [table] gives syntax error Pin
winay7-Jan-04 2:08
winay7-Jan-04 2:08 

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.