Solved

SQLBindParameter not used for all parameters

Posted on 2003-11-24
4
3,601 Views
Last Modified: 2012-05-04
I'm trying to update a table in mySQL database but I'm getting this error message:
ERROR [07002] [MySQL][ODBC 3.51 Driver][mysqld-4.0.16-max-debug]SQLBindParameter not used for all parameters.
What could be wrong?Thanks
0
Comment
Question by:viktor999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 17

Expert Comment

by:Squeebee
ID: 9813065
What does you code look like?
0
 
LVL 1

Accepted Solution

by:
jtremback earned 50 total points
ID: 10965649
I had the same problem...then I realized my parameter count was off. Check

MySQLDataAdapter.InsertCommand.Parameters.Count

and make sure the count equals the total number of values you are trying to insert.
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question