• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Too Many Client Tasks

 
Mohnish Khiani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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
  • 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....
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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*
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • 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.).
 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thank you for your replies
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic