Click here to Skip to main content
15,917,964 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to disable CD ROM autoplay function? Pin
HansonDavid22-Jul-03 1:09
HansonDavid22-Jul-03 1:09 
GeneralRe: How to disable CD ROM autoplay function? Pin
Ryan Binns22-Jul-03 1:14
Ryan Binns22-Jul-03 1:14 
GeneralSet Screensaver!!!!!!!!!!!!!!!!!!!!!! Pin
xxhimanshu21-Jul-03 1:11
xxhimanshu21-Jul-03 1:11 
GeneralRe: Set Screensaver!!!!!!!!!!!!!!!!!!!!!! Pin
Ryan Binns21-Jul-03 1:50
Ryan Binns21-Jul-03 1:50 
GeneralRe: Set Screensaver!!!!!!!!!!!!!!!!!!!!!! Pin
xxhimanshu21-Jul-03 2:45
xxhimanshu21-Jul-03 2:45 
GeneralRe: Set Screensaver!!!!!!!!!!!!!!!!!!!!!! Pin
David Crow21-Jul-03 3:22
David Crow21-Jul-03 3:22 
QuestionFastest DATABASE protcol? Pin
Lars [Large] Werner21-Jul-03 1:04
professionalLars [Large] Werner21-Jul-03 1:04 
AnswerRe: Fastest DATABASE protcol? Pin
Mike Dimmick21-Jul-03 2:04
Mike Dimmick21-Jul-03 2:04 
ODBC is generally a bit slower than OLE DB, because there are more layers involved - you talk to the ODBC manager, which talks to a driver, whereas with OLE DB, your program talks directly to the provider.

However, your experience may be different, depending on the driver or provider. One supplier's OLE DB provider might be less well optimised than their ODBC driver.

Using the native OLE DB provider will always be quicker than using MSDASQL, which is an OLE DB provider that wraps the ODBC manager. This allows connections to work - it says nothing about performance.

In this particular case, I suspect that your problem is actually per-statement overhead. If you can perform a batch update or insert, that would probably be better. I'm not sure how to go about this with ODBC - it's structured around executing SQL statements, so you probably need to have it execute a big batch of INSERT statements all chained together as a single logical statement.

For OLE DB, you ask for the IRowsetUpdate interface and use the InsertRow method to insert a new row. Once all rows are inserted, you call the Update method to update a complete batch of rows.

From C++, I would personally avoid ADO. You spend a lot of time working around the VBisms of the interface rather than being productive, IMO.
AnswerRe: Fastest DATABASE protcol? Pin
Manfred Staiger21-Jul-03 2:07
Manfred Staiger21-Jul-03 2:07 
GeneralRe: Fastest DATABASE protcol? Pin
John M. Drescher21-Jul-03 3:50
John M. Drescher21-Jul-03 3:50 
AnswerRe: Fastest DATABASE protcol? Pin
Miguel Lopes21-Jul-03 2:29
Miguel Lopes21-Jul-03 2:29 
GeneralRe: Fastest DATABASE protcol? Pin
Lars [Large] Werner21-Jul-03 3:32
professionalLars [Large] Werner21-Jul-03 3:32 
GeneralRe: Fastest DATABASE protcol? Pin
John M. Drescher21-Jul-03 3:56
John M. Drescher21-Jul-03 3:56 
GeneralRe: Fastest DATABASE protcol? Pin
Lars [Large] Werner21-Jul-03 4:13
professionalLars [Large] Werner21-Jul-03 4:13 
GeneralRe: Fastest DATABASE protcol? Pin
John M. Drescher21-Jul-03 4:28
John M. Drescher21-Jul-03 4:28 
GeneralRe: Fastest DATABASE protcol? Pin
Lars [Large] Werner21-Jul-03 4:35
professionalLars [Large] Werner21-Jul-03 4:35 
GeneralRe: Fastest DATABASE protcol? Pin
John M. Drescher21-Jul-03 4:46
John M. Drescher21-Jul-03 4:46 
GeneralRe: Fastest DATABASE protcol? Pin
Ian Darling21-Jul-03 5:17
Ian Darling21-Jul-03 5:17 
GeneralRe: Fastest DATABASE protcol? Pin
Miguel Lopes21-Jul-03 5:36
Miguel Lopes21-Jul-03 5:36 
GeneralRe: Fastest DATABASE protcol? Pin
Ian Darling21-Jul-03 5:56
Ian Darling21-Jul-03 5:56 
QuestionHow to shut off Floppy's LED rapidly Pin
FlyingDancer20-Jul-03 22:00
FlyingDancer20-Jul-03 22:00 
AnswerRe: How to shut off Floppy's LED rapidly Pin
Toni7820-Jul-03 22:28
Toni7820-Jul-03 22:28 
GeneralRe: How to shut off Floppy's LED rapidly Pin
FlyingDancer20-Jul-03 22:51
FlyingDancer20-Jul-03 22:51 
GeneralRe: How to shut off Floppy's LED rapidly Pin
Toni7820-Jul-03 23:01
Toni7820-Jul-03 23:01 
GeneralRe: How to shut off Floppy's LED rapidly Pin
FlyingDancer20-Jul-03 23:09
FlyingDancer20-Jul-03 23:09 

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.