Solved

SQLBindParameter not used for all parameters

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 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