Stored procedure from .NET: MySQLParameters without names
Posted by: carlos vega
Date: December 02, 2012 06:54PM

Hello!

Is it possible to call a stored procedure from .NET sending in parameters with no names?

Example:

Do this:
object name = "carlos";
command.Parameters.Add(name);
object pass= "1234";
command.Parameters.Add(pass);


Instead of this:
object name = "carlos";
command.Parameters.Add("username",name);
object pass= "1234";
command.Parameters.Add("password",pass);

The reason behind this, is that I don't want to specify the parameters names but to pass them in order according to the command.Parameters.Add() sentences. So 'name' would be the first param, and 'pass' the second, and so on...

Am I forced to specify names?

Thanks!



Edited 1 time(s). Last edit at 12/02/2012 07:07PM by carlos vega.

Options: ReplyQuote


Subject
Written By
Posted
Stored procedure from .NET: MySQLParameters without names
December 02, 2012 06:54PM


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.