Re: ADO and SQL2K5 and Speed



Kendrick wrote:

I am iterating a TClientdataset and then checking a destination table
for a matching record using Tdataset.Locate with the values of a
unique index and then editing if true or appending if not. I am
comparing the process between Advantage Data Server via their
TAdsTable component and a MSSQL2K5 via ADO. 440 records of moderate
size takes less than one second for Advantage and 40 seconds for
MSSQL. Any hints for improvement? (my first ADO endeavor and first
MSSQL).

More details please.

Are you calling Locate on the TClientDataSet or some other dataset
component. If another component what component?

Which ADO components are you using to access SQL Server? If you are
using anything other than TADODataSet, TADOCommand and TADOConnection
you may need to change. In particular, do not use TADOTable.

How are you inserting the records in SQL Server? A TADOCommand with a
parameterized INSERT statment would be fastest.

Are you also using a TClientDataSet with Advantage?

These are just a few of the questions that we need answers to. To
summarize we need a clear description of what components you are using
with which database and exactly how you are inserting the records.

--
Bill Todd (TeamB)
.



Relevant Pages

  • ADO Database error regarding parameters
    ... When inserting a record into a Sql Server 7 table using a TADOCommand ... I am not supplying any parameters in the insert statement at all, and I do not manipulate the TADOCommand Parameters in any way. ... INVOICE_NO = varchar ...
    (borland.public.delphi.database.ado)
  • VB accessing a text field in a table on SQL server 2000
    ... I inserting a row in a table on SQL server. ... works until I reach the datatype "text" and VB ADO dosen't ...
    (microsoft.public.sqlserver.programming)
  • Re: How to Mimic Access Externally Linked Tables using ADO?
    ... > using SQL Server for efficiency reasons. ... > connection up programmatically using ADO or ADOX or some SQL Server API? ... >> newsgroup, but if you have a good reason to send me e-mail, you'll find ... ADO does not have a query engine. ...
    (microsoft.public.data.ado)
  • Re: How to access the SQL server express from mfc application?
    ... There are different ways to do this via MFC. ... You could certainly try ADO, ... the entire contents of the database to a SQL Server Standard Server. ...
    (microsoft.public.vc.mfc)
  • Re: DAO vs ADO
    ... and ADO when working with SQL Server data. ... which makes DAO a good choice. ... > add additional overhead by loading Jet, ...
    (microsoft.public.access.conversion)