Improving Select Query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • atishrg
    New Member
    • Apr 2008
    • 9

    Improving Select Query

    Hi I am using Select query but it is taking time to retrive data I am using ODBC connection can n e one tell me how can I Improve this query performance query as given below there are 30 field and thousands of records in the table I have to select only two

    select col1, col2 from TableName
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by atishrg
    Hi I am using Select query but it is taking time to retrive data I am using ODBC connection can n e one tell me how can I Improve this query performance query as given below there are 30 field and thousands of records in the table I have to select only two

    select col1, col2 from TableName
    Why are you using ODBC? What's the front-end apps?

    -- CK

    Comment

    • atishrg
      New Member
      • Apr 2008
      • 9

      #3
      Originally posted by ck9663
      Why are you using ODBC? What's the front-end apps?

      -- CK
      Thanks for u r Reply ..


      I am using vb.net window application, and its my project need that I use ODBC connecttion....

      Comment

      • ck9663
        Recognized Expert Specialist
        • Jun 2007
        • 2878

        #4
        That's the catch...It's slow. Try looking at possible DSN-Less way of connecting to your DB

        -- CK

        Comment

        • atishrg
          New Member
          • Apr 2008
          • 9

          #5
          Originally posted by ck9663
          That's the catch...It's slow. Try looking at possible DSN-Less way of connecting to your DB

          -- CK
          u mean it is not possible to improve that query peformance with current situation..... by using ODBC connection

          Comment

          • ck9663
            Recognized Expert Specialist
            • Jun 2007
            • 2878

            #6
            Create index. Just select the fields you need. What kind of apps are you trying to use this connection for?

            -- CK

            Comment

            Working...