Re: What's the best way to open a recordset for insert only?



Spencer wrote:
Just in case you were wondering, the application is now inserting
3000-4000 records in the test environment per tick of the progress
bar/call to BatchUpdate. Setting rs.ActiveConnection to Nothing
between batches doesn't seem to improve that significantly.


It shouldn't. What it should improve is the number of active connections
to your sql server while you are adding the records to your recordset.
It is always good to minimize those connections.

I guess another way to say this is: there is no need to be connected to
the sql server in batch update mode until you need to send the batch
updates to the database.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Classic ASP connectionstring to SQL Server 2005
    ... received an error message: ... database from an ASP to VB6 DLL to SQL Server 2K5? ... Connections option in the Database Engine node. ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Help! Whats with the open connection?
    ... I would ask this question over in the SQL Server newsgroup. ... Please reply only to the newsgroup so that others can benefit. ... > of connections my SQL will allow? ... >> Microsoft MVP ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Classic ASP connectionstring to SQL Server 2005
    ... I now need to contect to a SQL Server 2K5 database. ... Server Surface Area Configuration tool (Start>SQL Server ... Connections option in the Database Engine node. ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.db)
  • RE: Could not bind to a Domain Controller
    ... This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ... "The member performs an initial join of the replica set from an upstream ... All the local area connections and remote access connections appear ...
    (microsoft.public.windows.server.sbs)
  • RE: Could not bind to a Domain Controller
    ... This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ... Make sure both the internal and external network adapters are poiting to ... All the local area connections and remote access connections appear ...
    (microsoft.public.windows.server.sbs)