MySQL Forums
Forum List  »  Delphi

Delphi 2007 ASP.NET / MySQL Connector/NET Command Parameters
Posted by: Andrew Allsopp
Date: July 15, 2009 11:35AM

When I try to add parameters to a MySQLCommand object in RAD Studio 2007, ASP.NET project in the Visual designer, I get an initial error saying 'MySQL.Data.MySQLClient.MySQLException: Parameters Must be Named'. If I click OK to this, name the parameter and enter the details, all appears to be OK. When I next go to display the web page in the designer, I get an error saying 'Invalid cast from 'System.Data.DbType' to 'MySql.Data.MySqlClient.MySqlDbType'.' Is there a way to override this error or do I have to create all my parameters maunally in the code?

Options: ReplyQuote


Subject
Written By
Posted
Delphi 2007 ASP.NET / MySQL Connector/NET Command Parameters
July 15, 2009 11:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.