Click here to Skip to main content
15,892,927 members
Home / Discussions / Database
   

Database

 
QuestionDoes access work on network? Pin
Anonymous30-Jul-03 3:03
Anonymous30-Jul-03 3:03 
AnswerRe: Does access work on network? Pin
Mike Dimmick30-Jul-03 3:11
Mike Dimmick30-Jul-03 3:11 
GeneralRe: Does access work on network? Pin
Member 9630-Jul-03 4:25
Member 9630-Jul-03 4:25 
GeneralRe: Does access work on network? Pin
Mike Dimmick30-Jul-03 4:49
Mike Dimmick30-Jul-03 4:49 
GeneralRe: Does access work on network? Pin
Member 9630-Jul-03 5:28
Member 9630-Jul-03 5:28 
AnswerRe: Does access work on network? Pin
Member 9630-Jul-03 4:23
Member 9630-Jul-03 4:23 
GeneralADO Performance Pin
RChin29-Jul-03 22:40
RChin29-Jul-03 22:40 
GeneralRe: ADO Performance Pin
Mike Dimmick30-Jul-03 3:36
Mike Dimmick30-Jul-03 3:36 
ADO has the disadvantage of being a wrapper for Visual Basic and scripting languages. In order to support this, it does a lot of copying into small temporary objects.

Using the underlying OLE DB allows you to supply your own buffers for data rows, and also to use more advanced operations such as delayed updates (accumulating an update in memory, then performing the whole update in one network operation).

You may want to look into the OLE DB consumer templates. A helpful resource is the book OLE DB Consumer Templates: A Programmers Guide[^].

You should definitely check whether the time is being taken in generating the resultset or in passing the resultset across the connection. If more time is taken in fetching the resultset, you might want to consider using the adAsyncFetch option to the Command's Execute method, which will fetch up to the CacheSize before returning, then fetch the rest of the rows asynchronously. If you try to access a row not yet received, the operation will block until that row has been received.

Use only the cursors you need for an operation. If you're just reading a resultset, specify adLockReadOnly for the lock type, and adOpenForwardOnly for the cursor type. This allows SQL Server to simply squirt the rows down your connection (it's often called a firehose cursor for this reason).

For SQL Server, you should definitely get used to entering sample queries into Query Analyzer and looking at the Execution Plan that results. This can help you reformulate your queries to work better. The SQL Profiler tool can help you examine a workload and determine if you should add - or remove! - some indexes to improve performance.

For more on optimising SQL Server queries, see Inside SQL Server 2000[^].
GeneralRe: ADO Performance Pin
RChin30-Jul-03 22:34
RChin30-Jul-03 22:34 
QuestionHow to get the columns except one Pin
Exceter29-Jul-03 18:45
Exceter29-Jul-03 18:45 
AnswerRe: How to get the columns except one Pin
Mike Dimmick30-Jul-03 3:07
Mike Dimmick30-Jul-03 3:07 
GeneralRe: How to get the columns except one Pin
Alexander Kojevnikov30-Jul-03 5:15
Alexander Kojevnikov30-Jul-03 5:15 
GeneralRe: How to get the columns except one Pin
Philip Patrick31-Jul-03 2:38
professionalPhilip Patrick31-Jul-03 2:38 
GeneralRe: How to get the columns except one Pin
Alexander Kojevnikov31-Jul-03 4:16
Alexander Kojevnikov31-Jul-03 4:16 
GeneralDetecting MDAC version Pin
Thesisus29-Jul-03 8:04
Thesisus29-Jul-03 8:04 
GeneralRe: Detecting MDAC version Pin
Bo Hunter29-Jul-03 10:32
Bo Hunter29-Jul-03 10:32 
GeneralRe: Detecting MDAC version Pin
Mike Dimmick29-Jul-03 13:36
Mike Dimmick29-Jul-03 13:36 
Generalindexof - wishing for Pin
Megan Forbes29-Jul-03 5:07
Megan Forbes29-Jul-03 5:07 
GeneralRe: indexof - wishing for Pin
jeff_martin29-Jul-03 5:16
jeff_martin29-Jul-03 5:16 
GeneralRe: indexof - wishing for Pin
Mike Dimmick29-Jul-03 13:47
Mike Dimmick29-Jul-03 13:47 
GeneralWhat's wrong with Query String; Pin
Bo Hunter28-Jul-03 18:55
Bo Hunter28-Jul-03 18:55 
GeneralRe: What's wrong with Query String; Pin
Alexander Kojevnikov28-Jul-03 23:20
Alexander Kojevnikov28-Jul-03 23:20 
GeneralRe: What's wrong with Query String; Pin
Jon Hulatt29-Jul-03 1:43
Jon Hulatt29-Jul-03 1:43 
GeneralRe: What's wrong with Query String; Pin
Bo Hunter29-Jul-03 10:21
Bo Hunter29-Jul-03 10:21 
GeneralRe: What's wrong with Query String; Pin
Alexander Kojevnikov29-Jul-03 22:07
Alexander Kojevnikov29-Jul-03 22:07 

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.