• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Too Many Client Tasks

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have used microsoft access as a database in my program and sometimes i get the exception:

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

Why does this happen..and what do i do to avoid it?
 
Mohnish Khiani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for being impatient.....but i need to solve this problem as quickly as possible...can any one help me out here....
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
6th result on a google search for this error message: http://www.pagedowntech.com/faq/faq.asp?faqid=64 *sigh*
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Be aware that the JDBC/ODBC driver is buggy and not thread-safe. If you have to use Access in a concurrent environment (why?), at least use a decent driver (like HXTT). Or -much better- use a DB that's made for concurrency (SQLServer, PostgreSQL, MySQL, etc.).
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mohnish Khiani wrote:I have used microsoft access as a database in my program and sometimes i get the exception:

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

Why does this happen..and what do i do to avoid it?



you should close your all db connection properly... close your resultset (if you have used) using close() method of ResultSet class and close your statement object using close() method of Statement; this all should be done in finally block.. closing all db stuffs is always best practice.
 
Mohnish Khiani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you for your replies
 
reply
    Bookmark Topic Watch Topic
  • New Topic