Parameter marker
Posted by: Paul
Date: February 26, 2007 05:59AM

I have got a question about the parameter markers. I am developing software for MySQL and MSSQL. And to get parameters from the command.parameters collection i use for instants: logOnInformation.Id = (int)((IDataParameter)cmd.Parameters["Id"]).Value;. Because the parameter marker is now required in MySQL i cannot longer use this. Is there a solution for this problem.....

I cannot use logOnInformation.Id = (int)((IDataParameter)cmd.Parameters["?Id"]).Value; and also logOnInformation.Id = (int)((IDataParameter)cmd.Parameters[1]).Value; is not an option.

Options: ReplyQuote

Written By
Parameter marker
February 26, 2007 05:59AM
February 26, 2007 12:22PM
February 26, 2007 12:39PM
February 27, 2007 12:04PM
March 11, 2007 09:45AM

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.