Thanks - I've tried this and I get exactly the same result. !
Ross
Main Topics
Browse All TopicsI am using VWD 2005 Express and MySQL 5.1.34
I have tried some very simple stored procedures to test them in MySQL.
Stored Procedures with no parameters are OK, but when I try to execute one with a parameter it is throwing an exceptions as follows :
ex {"ERROR [HY000] [MySQL][ODBC 3.51 Driver][mysqld-5.1.34]
Incorrect number of arguments for PROCEDURE vehiclereg.getRegistration
expected 1, got 0"} System.Exception
I am using ODBC 3.51 - I understand that MySQL Connector Net 5.2.6 does not work with VWD Express.
The SP works correctly with a parameter when I use the console in MySQL :
mysql> CALL getRegistrationDetails('AB
Any help gratefully received as this is driving me crazy !
Ross
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Delighted to say that I have solved the problem !
I said in my initial post "I am using ODBC 3.51 - I understand that MySQL Connector Net 5.2.6 does not work with VWD Express" - I guess I was misinformed !
I retried the MySQL Connector which now works - I didn't realise before that I should have been using
MySqlConnection, MySqlCommand etc instead of SqlConnection and SqlCommand etc.
Ross
Business Accounts
Answer for Membership
by: DhaestPosted on 2009-05-14 at 04:01:44ID: 24383504
Seen somewhere on another forum, I don't know if it can help you. elID", "2").Direction = ParameterDirection.Input
egLetters" ,"ABC")
There pass this as parameter
cmd.Parameters.Add("?chann
So can you try one of the following:
1. myPar = cmd.CreateParameter()
myPar.ParameterName = "?passRegLetters"
myPar.Value = "ABC"
myPar.Direction = ParameterDirection.Input
Or
cmd.Parameters.Add("?passR