Solved

SQLBindParameter not used for all parameters

Posted on 2003-11-24
4
3,541 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql ide 10 55
mysql database, schema and table creation 13 114
remote mysql 8 53
MySQL HA and DR solution. 5 37
Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 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