MySql Parameter

Topics: User Discussion
Feb 14, 2010 at 11:43 PM

Hi, How can I use Mysql parameter in my commands and stored procedure, I am getting error: Parameter 'xxxxx' must be defined. But also i am defined my parameters. Thanks

Coordinator
Feb 22, 2010 at 5:48 PM

Hi Kemax,

You don't use MySql parameters you use generic ones.  The whole idea of the DAAB is that your code uses generic objects whilst your configuration defines the actual type of objects that get instantiated.  So you should be handling parameters through the Database object. If you are getting stuck look at how the Unit tests handle parameters a good place to look is in the MySqlDataSetHelper that will show the construction of stored procedures as well as commands that take parameters.

Cheers...   Steve