Re: Performance problem for VB6 app using ADO over VPN



I wrote a vb6 app (some time back) utilizing ado to connect to a
sql-server database. This was running on the company's internal network
and everything was fine. But I had to load this app on a Computer which
connectsto our server via VPN. But the performance is so bad from this
computer. It takes a long time to execute even a make a simple database
call.

Gurus....Any Ideas as to how to speed this up?

Nothing simple. You need to make sure the number of server round-trips is
low and when it does do a round trip, it is sending substantial packets.

So Parameter Refresh on Commands should be replaced with pre-worked
parameter setup.
Command objects should be kept long-lived
Server-sided cursors for RecordSets should have Caches that are 256 objects,
etc.
Don't do "SELECT *". Replace with fields needed.
Lock Types should be the bare minimum functionality you need.

Stephen Howe




.



Relevant Pages

  • Re: Calculating Bandwidth
    ... "Mike Lowery" wrote: ... SQL-Server Database. ... My hosting give me 2500 GB Monthly Bandwidth for the server. ...
    (microsoft.public.windowsmedia.server)
  • SQL Server problem
    ... SQL-Server database, but every time the application is run, I get the ... Database server is Microsoft SQL-Server 2000, running on Windows Server ...
    (microsoft.public.dotnet.framework.adonet)