Too many client tasks

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Too many client tasks

    I am writing a site that uses an ODBC link to a database, the code
    below is used to retrieve data from this database. I have had reports
    of the following error.

    ERROR [08004] [Microsoft][ODBC Microsoft Access Driver] Too many
    client tasks. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
    SQLSetConnectAttr failed

    I have included the code in question below, as you can see it takes in
    a string containing an SQL statement. The returned data is then
    returned within a DataView object. No other code in the site accesses
    the database, so the problem must be in this code.


    Can anyone help, I'm stuck



    private DataView GetDataView(string szSQL)
    {
    string szConnection= "DSN=tif";
    DataSet objDataSet= new DataSet();
    OdbcConnection objDBConn = new OdbcConnection(szConnection);
    OdbcDataAdapter objDataAdapter = new OdbcDataAdapter();
    objDataAdapter.SelectCommand = new OdbcCommand(szSQL, objDBConn);
    objDataAdapter.Fill(objDataSet);
    DataView objDataView= objDataSet.Tables[0].DefaultView;

    objDBConn.Close();

    return objDataView;
    }
    Andy Ogden Guest

  2. Similar Questions and Discussions

    1. error - too many client tasks
      hi, I am getting this error, error executing database query. Too many client tasks. does anybody know what is causing it and how to fix it...
    2. Scheduled tasks
      Hi there, My web app needs to run a schduled task - every hour it needs to scan the DB, find any updates and - if there are updates - send an...
    3. Flash Webcam client <-> client (not client <-> server<-> client)
      Dear Flash Team, supporter and regular mortals (Like myself) I am currently running a IRC chat with mostly webclients connected. We currently offer...
    4. background tasks without "scheduled tasks"
      I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul,...
    5. Automated tasks
      Hi, I have an auction site running. Now I want the auction to be able to automatically send a mail msg to the seller after it expires. How do I...
  3. #2

    Default Too Many Client tasks

    I have a problem with a web server that has about 125 web
    sites on it. It appears that someone or several people
    are not closing their connections. I keep getting the
    error "too many client tasks" . I need to know if there
    is any way to troubleshoot this, like see what user has
    what connections open. It is not practical to go through
    all of the code since there are probably a thousand asp
    files on the server. Any help would be GREATLY
    appreciated. I've searched for help with no success.

    The configuration is:
    Windows 2003 Standard Server
    IIS 6
    MDAC that was included with 2003 server.

    Thanks,
    Brian

    Brian Guest

  4. #3

    Default Re: Too Many Client tasks

    On Sun, 13 Jun 2004 13:09:57 -0700, "Brian"
    <anonymous@discussions.microsoft.com> wrote:
    >I have a problem with a web server that has about 125 web
    >sites on it. It appears that someone or several people
    >are not closing their connections. I keep getting the
    >error "too many client tasks" . I need to know if there
    >is any way to troubleshoot this, like see what user has
    >what connections open. It is not practical to go through
    >all of the code since there are probably a thousand asp
    >files on the server. Any help would be GREATLY
    >appreciated. I've searched for help with no success.
    Post the full error and where you're seeing it. If it's in the event
    log post the event ID and source, if not, check the event log for a
    corresponding error message.
    >The configuration is:
    >Windows 2003 Standard Server
    >IIS 6
    >MDAC that was included with 2003 server.
    Access databases by any chance?

    Jeff
    Jeff Cochran Guest

  5. #4

    Default Re: Too Many Client tasks

    This is the error I see in the asp pages.


    Microsoft OLE DB Provider for ODBC Drivers
    error '80040e4d'

    [Microsoft][ODBC Microsoft Access Driver] Too many client
    tasks.

    Basiclly all database access on all sites stop with this
    error until I reboot the server.

    There are no eventlog errors.

    Thanks,
    Brian


    >-----Original Message-----
    >On Sun, 13 Jun 2004 13:09:57 -0700, "Brian"
    ><anonymous@discussions.microsoft.com> wrote:
    >
    >>I have a problem with a web server that has about 125
    web
    >>sites on it. It appears that someone or several people
    >>are not closing their connections. I keep getting the
    >>error "too many client tasks" . I need to know if there
    >>is any way to troubleshoot this, like see what user has
    >>what connections open. It is not practical to go
    through
    >>all of the code since there are probably a thousand asp
    >>files on the server. Any help would be GREATLY
    >>appreciated. I've searched for help with no success.
    >
    >Post the full error and where you're seeing it. If it's
    in the event
    >log post the event ID and source, if not, check the
    event log for a
    >corresponding error message.
    >
    >>The configuration is:
    >>Windows 2003 Standard Server
    >>IIS 6
    >>MDAC that was included with 2003 server.
    >
    >Access databases by any chance?
    >
    >Jeff
    >.
    >
    Guest

  6. #5

    Default Re: Too Many Client tasks

    You are either not closing database connections or there are just too many
    concurrent users for MS Access to accomodate.

    [url]http://www.aspfaq.com/show.asp?id=2195[/url]

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    [url]www.ielearning.com[/url]


    <anonymous@discussions.microsoft.com> wrote in message
    news:1bdaa01c45188$b4a2d970$a101280a@phx.gbl...
    > This is the error I see in the asp pages.
    >
    >
    > Microsoft OLE DB Provider for ODBC Drivers
    > error '80040e4d'
    >
    > [Microsoft][ODBC Microsoft Access Driver] Too many client
    > tasks.
    >
    > Basiclly all database access on all sites stop with this
    > error until I reboot the server.
    >
    > There are no eventlog errors.
    >
    > Thanks,
    > Brian
    >
    >
    >
    > >-----Original Message-----
    > >On Sun, 13 Jun 2004 13:09:57 -0700, "Brian"
    > ><anonymous@discussions.microsoft.com> wrote:
    > >
    > >>I have a problem with a web server that has about 125
    > web
    > >>sites on it. It appears that someone or several people
    > >>are not closing their connections. I keep getting the
    > >>error "too many client tasks" . I need to know if there
    > >>is any way to troubleshoot this, like see what user has
    > >>what connections open. It is not practical to go
    > through
    > >>all of the code since there are probably a thousand asp
    > >>files on the server. Any help would be GREATLY
    > >>appreciated. I've searched for help with no success.
    > >
    > >Post the full error and where you're seeing it. If it's
    > in the event
    > >log post the event ID and source, if not, check the
    > event log for a
    > >corresponding error message.
    > >
    > >>The configuration is:
    > >>Windows 2003 Standard Server
    > >>IIS 6
    > >>MDAC that was included with 2003 server.
    > >
    > >Access databases by any chance?
    > >
    > >Jeff
    > >.
    > >


    Mark Schupp Guest

  7. #6

    Default Re: Too Many Client tasks

    On Sun, 13 Jun 2004 13:55:06 -0700,
    <anonymous@discussions.microsoft.com> wrote:
    >This is the error I see in the asp pages.
    >
    >
    >Microsoft OLE DB Provider for ODBC Drivers
    >error '80040e4d'
    >
    >[Microsoft][ODBC Microsoft Access Driver] Too many client
    >tasks.
    >
    >Basiclly all database access on all sites stop with this
    >error until I reboot the server.
    Sounds like it's time to upgrade to SQL Server or at least MSDE. May
    also be related to the Jet bug, if you call Microsoft support thay
    have a beta fix for this.

    Jeff
    >>-----Original Message-----
    >>On Sun, 13 Jun 2004 13:09:57 -0700, "Brian"
    >><anonymous@discussions.microsoft.com> wrote:
    >>
    >>>I have a problem with a web server that has about 125
    >web
    >>>sites on it. It appears that someone or several people
    >>>are not closing their connections. I keep getting the
    >>>error "too many client tasks" . I need to know if there
    >>>is any way to troubleshoot this, like see what user has
    >>>what connections open. It is not practical to go
    >through
    >>>all of the code since there are probably a thousand asp
    >>>files on the server. Any help would be GREATLY
    >>>appreciated. I've searched for help with no success.
    >>
    >>Post the full error and where you're seeing it. If it's
    >in the event
    >>log post the event ID and source, if not, check the
    >event log for a
    >>corresponding error message.
    >>
    >>>The configuration is:
    >>>Windows 2003 Standard Server
    >>>IIS 6
    >>>MDAC that was included with 2003 server.
    >>
    >>Access databases by any chance?
    >>
    >>Jeff
    >>.
    >>
    Jeff Cochran Guest

  8. #7

    Default Re: Too Many Client tasks

    Thanks for the information. What I am really looking for
    is some way to determine who is using the connections and
    not closing them.
    Does anyone know of a way to see how many access db
    connections are open and who or what site has them open.
    I know that it is someone not closing their connection
    but I can't figure out who it is.
    If I can determine that someone has serveral open
    connections, I can tell them to check their code and
    close the connections.

    Thanks,
    Brian
    >-----Original Message-----
    >You are either not closing database connections or there
    are just too many
    >concurrent users for MS Access to accomodate.
    >
    >[url]http://www.aspfaq.com/show.asp?id=2195[/url]
    >
    >--
    >Mark Schupp
    >Head of Development
    >Integrity eLearning
    >[url]www.ielearning.com[/url]
    >
    >
    ><anonymous@discussions.microsoft.com> wrote in message
    >news:1bdaa01c45188$b4a2d970$a101280a@phx.gbl...
    >> This is the error I see in the asp pages.
    >>
    >>
    >> Microsoft OLE DB Provider for ODBC Drivers
    >> error '80040e4d'
    >>
    >> [Microsoft][ODBC Microsoft Access Driver] Too many
    client
    >> tasks.
    >>
    >> Basiclly all database access on all sites stop with
    this
    >> error until I reboot the server.
    >>
    >> There are no eventlog errors.
    >>
    >> Thanks,
    >> Brian
    >>
    >>
    >>
    >> >-----Original Message-----
    >> >On Sun, 13 Jun 2004 13:09:57 -0700, "Brian"
    >> ><anonymous@discussions.microsoft.com> wrote:
    >> >
    >> >>I have a problem with a web server that has about 125
    >> web
    >> >>sites on it. It appears that someone or several
    people
    >> >>are not closing their connections. I keep getting the
    >> >>error "too many client tasks" . I need to know if
    there
    >> >>is any way to troubleshoot this, like see what user
    has
    >> >>what connections open. It is not practical to go
    >> through
    >> >>all of the code since there are probably a thousand
    asp
    >> >>files on the server. Any help would be GREATLY
    >> >>appreciated. I've searched for help with no success.
    >> >
    >> >Post the full error and where you're seeing it. If
    it's
    >> in the event
    >> >log post the event ID and source, if not, check the
    >> event log for a
    >> >corresponding error message.
    >> >
    >> >>The configuration is:
    >> >>Windows 2003 Standard Server
    >> >>IIS 6
    >> >>MDAC that was included with 2003 server.
    >> >
    >> >Access databases by any chance?
    >> >
    >> >Jeff
    >> >.
    >> >
    >
    >
    >
    >.
    >
    Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139