Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I m getting error '[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.'

 
java mohamed
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting error '[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.'


my code is below





help me.. thanks in advance
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This exception may come with MS-Access database, when you specify a column name in a select statement. Try giving * instead of the fields.. also, try removing the where condition if the error persists..
 
T. Huy Nguyen
Ranch Hand
Posts: 57
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This line



does not seem right because CQ_ID is of type String and there is no quote around CqId
 
Jan Cumps
Bartender
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a resource leak here. You return without closing your resources.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic