CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Tortoise

  1. #1
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    Tortoise

    Could anyone help me with my code? My program is running at a very slow speed in retrieving data from the Oracle server. I have tried to create indexes to try to improve its slowness but to no avail. Part of the code that is causing the problem is as shown:

    Private env as rdoEnvironment
    Private cn as rdoConnection

    Private Form_Load()

    Dim Sqlcon, Sqlrs as String
    Dim rs as rdoResultset

    SqlCon = "Provider=MSDAORA.1;DSN=orc0;UID=pssd;PWD=GHFD"

    set cn = env.openConnection("orc0",rdDriverComplete,False,Sqlcon)

    Sqlrs ="Select * from af_Table where column1 ='" & text1.text & "'"

    set rs = cn.openResultset (Sqlrs, rdOpenKeyset, rdConcurValues)

    End Sub



  2. #2
    Join Date
    Nov 1998
    Location
    Philadelphia, USA
    Posts
    11

    Re: Tortoise

    Try changing the "select *" to "select field1,fields2 etc" using the specific field names. I am using ado with jet and the * was causing my retrieval times to poor. Has really sped up now that I use the specific fields
    Hope this helps
    Rob


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured