Click here to Skip to main content
15,922,007 members
Home / Discussions / Database
   

Database

 
GeneralRe: Help with sql trigger Pin
Mike Dimmick22-Aug-03 4:04
Mike Dimmick22-Aug-03 4:04 
GeneralRe: Help with sql trigger Pin
Ista22-Aug-03 4:11
Ista22-Aug-03 4:11 
QuestionHELP!!! why it's so hard to insert a row to Database by ADO.NET? Pin
yyf19-Aug-03 9:20
yyf19-Aug-03 9:20 
AnswerRe: HELP!!! why it's so hard to insert a row to Database by ADO.NET? Pin
yyf19-Aug-03 10:25
yyf19-Aug-03 10:25 
GeneralRe: HELP!!! why it's so hard to insert a row to Database by ADO.NET? Pin
Tom Archer25-Aug-03 15:42
Tom Archer25-Aug-03 15:42 
Generalhelp with common ASP/SQL speed issues Pin
kaht19-Aug-03 7:20
kaht19-Aug-03 7:20 
GeneralRe: help with common ASP/SQL speed issues Pin
Jason McBurney21-Aug-03 4:57
Jason McBurney21-Aug-03 4:57 
GeneralRe: help with common ASP/SQL speed issues Pin
Mike Dimmick22-Aug-03 5:04
Mike Dimmick22-Aug-03 5:04 
Lessee:

Try to do as much in a single batch as you can. This would involve accumulating changes in a recordset, then using UpdateBatch if your provider supports it, rather than using lots of single Update statements. See also adLockBatchOptimistic.

Try to return as little information as possible in your resultsets, for example, use SELECT Column1, Column2 rather than SELECT *. SELECT * also forces the database to read the syscolumns table every time to find out what the columns on the table are, rather than using a cached execution plan.

If you need many results that don't conform to the same schema, consider using multiple result sets from one batch rather than submitting each statement in its own batch. Use ADO's NextRecordset method to access multiple result sets (this is actually a lot easier in ADO.NET).

Learn to read the execution plans shown by Query Analyzer, which will show where your bottlenecks are in any given procedure. Indexes may help. SQL Profiler's Index Tuning Wizard can assist in suggesting where another index might be beneficial, or where the cost of maintaining an index is hurting performance.

Use the Recordset's CacheSize property to fetch more than one row at a time, or consider using a forward-only or client-side cursor, then disconnecting the recordset by setting its ActiveConnection property to Nothing (forcing ADO to get all the records).
GeneralRe: help with common ASP/SQL speed issues Pin
kaht25-Aug-03 3:03
kaht25-Aug-03 3:03 
GeneralJet OLEDB:Format Pin
Anthony988719-Aug-03 5:52
Anthony988719-Aug-03 5:52 
QuestionHow to make smaller ACCESS initial file ? Pin
vgrigor19-Aug-03 4:15
vgrigor19-Aug-03 4:15 
GeneralTransactions with Access Pin
Jerome Conus19-Aug-03 2:43
Jerome Conus19-Aug-03 2:43 
GeneralRe: Transactions with Access Pin
RichardGrimmer19-Aug-03 5:21
RichardGrimmer19-Aug-03 5:21 
GeneralRe: Transactions with Access Pin
Steve S19-Aug-03 22:15
Steve S19-Aug-03 22:15 
GeneralMacro to update data from excel file Pin
PrasadD18-Aug-03 14:07
PrasadD18-Aug-03 14:07 
GeneralRe: Macro to update data from excel file Pin
xoph21-Aug-03 1:33
xoph21-Aug-03 1:33 
QuestionToo Complex For Me...Maybe You? Pin
jesus4u18-Aug-03 8:03
jesus4u18-Aug-03 8:03 
AnswerRe: Too Complex For Me...Maybe You? Pin
basementman18-Aug-03 10:00
basementman18-Aug-03 10:00 
GeneralRe: Too Complex For Me...Maybe You? Pin
jesus4u18-Aug-03 10:04
jesus4u18-Aug-03 10:04 
GeneralRe: Too Complex For Me...Maybe You? Pin
basementman18-Aug-03 10:08
basementman18-Aug-03 10:08 
GeneralRetrieving PF, FK from table Pin
SimonS18-Aug-03 7:32
SimonS18-Aug-03 7:32 
GeneralRe: Retrieving PF, FK from table Pin
basementman18-Aug-03 10:06
basementman18-Aug-03 10:06 
GeneralRe: Retrieving PF, FK from table Pin
RichardGrimmer19-Aug-03 5:25
RichardGrimmer19-Aug-03 5:25 
GeneralRe: Retrieving PF, FK from table Pin
SimonS19-Aug-03 10:42
SimonS19-Aug-03 10:42 
QuestionEver needed to Increment a Revision? Pin
OMalleyW18-Aug-03 4:29
OMalleyW18-Aug-03 4:29 

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.