Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3743
  • Last Modified:

SQLBindParameter not used for all parameters

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
viktor999
Asked:
viktor999
1 Solution
 
SqueebeeCommented:
What does you code look like?
0
 
jtrembackCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now