You can use SQL exec , which does not ask for parameter names:
command.CommandText = string.Format( "exec dbo.YourProcedure {0}, '{1}'", intParameter, stringParameter.Replace("'","''") ); command.ExecuteNonQuery();
If your source source is unreliable, be sure to avoid single quotes in string parameters. This is done for stringParameter in the snippet above.
Andomar
source share