Re: rdo performance with sql 2000

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I suspect that the SQL Server you're executing against does not have the
same indexes as the server with better performance.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

<MThomas@xxxxxxxxxxxxxx> wrote in message
news:1117206938.659977.285290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello!

I am looking into an issue with a stand alone VB6 application and would
really appreciate some help. At some of our sites the application runs
with SQL Server 6.5 as the back end and all is well. Other sites,
however, have upgraded to SQL Server 2000 (and the stored procs has
been modified to accomodate this).


There is one stored proc that is executed from the VB application and
runs painfully slow with the 2000 back-end. If you run the same proc in
query analyzer it is really fast, but from the app it slows to a crawl.


This only happens with the 2000 back-end, not 6.5. No data is
returned, the proc is simply executed. There are no cursors or
anything funky in the proc, it just selects, updates, and deletes from
a bunch of tables. Does anyone have any theories about what in the
application could be causing this? Heres a code snippett (... referrs
to code omitted):


IN A MODULE:
-------------
Public fClient As rdoEnvironment
Public fConnection as New rdoConnection


Public Function basLoginSQL(...params...) as Boolean
...


Set fClient = rdoEngine.rdoCreateEnvironment­(sEnvName, _
GenericUID, _
GenericPWD)
fClient .LoginTimeout = 0
fClient.CursorDriver = rdUseIfNeeded


Set fConnection= greFharm.OpenConnection(FharmD­SN, _
rdDriverNoPrompt, _
False)
...
End Function


IN THE FORM:
-------------
Private Sub Delete()
...
SQL = "DELETE_Stored_Procedure " & _
Param1 & ", " & _
Param2


fConnection.Execute SQL, rdExecDirect
...
End Sub


Thank you in advance for your help!
Michelle


.



Relevant Pages

  • rdo performance with sql 2000
    ... with SQL Server 6.5 as the back end and all is well. ... There is one stored proc that is executed from the VB application and ... Set fClient = rdoEngine.rdoCreateEnvironment­(sEnvName, _ ... Private Sub Delete ...
    (microsoft.public.vb.database)
  • Re: Long Running Procedure
    ... think of that it would run faster after a restart is that SQL Server had to ... dynamically free up lots of memory for whatever the proc is doing... ... We are executing one big SP once in a month. ... If we run the SP after restarting ...
    (microsoft.public.sqlserver.programming)
  • Stored procedure does not complete until result set is retrieved from ODBC
    ... I have a SQL Server Stored procedure that I am executing via ODBC. ... -- Start Code without cursor ...
    (microsoft.public.sqlserver.odbc)
  • Re: Maintenance plan
    ... Executing the query "EXECUTE master.dbo.xp_delete_file ... After the maintenance run at the end when it has to delete old backup ... What is logged in the job history, SQL Server or Windows logs? ... The message was checked by ESET NOD32 Antivirus. ...
    (microsoft.public.sqlserver.server)
  • Re: Another Concurrency Issue!!!!
    ... > allocating in blocks, using tables with identities, etc. ... > Columnist, SQL Server Professional ... I have a proc which returns a value after some DML operations on ... >> TIA ...
    (microsoft.public.sqlserver.programming)