CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    1

    Slow ODBC Connection

    I have a problem with a web application I have built. Here are the specifications of my current system:

    Database - Oracle 10g
    Web code - ASP .NET 2.0
    web server - IIS 6
    System DSN - Microsoft ODBC for Oracle

    My Connection happens instantly, but when I attempt to use a data adapter to fill a DataTable, it takes well over a minute to run the query. When I run the exact same query in Toad (pl/sql IDE) it takes less than a second. When I built a test console application the same query runs in 10 seconds (which is still a very long time in my eyes). I have an old system that runs on oracle 9i and the same query through the web takes about 2 seconds. I have compared the IIS configuration and web.config files for the old and new systems, they are identical. The system DSNs are configured the same way. What could be causing this slowness?

  2. #2
    Join Date
    Sep 2007
    Posts
    82

    Re: Slow ODBC Connection

    what type of query is it....are you trying to bring back a bunch of rows....maybe you could post your code for easier examination.

    thanks,

    -zd

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