M
Michael C
I was looking over some code that calls a stored procedure from C#. I have
specified one more parameter than necessary but the code still works. Does
anyone know why it works? This is on a PDA connecting to SQLServer.
Thanks.
eg
sqlCommand command = new SqlCommand(connection, "INSERT INTO SomeTable
(A,B,C) VALUES (@A, @B, @C)");
create parameter called @A (couldn't be bothered typing code)
create parameter called @B
create parameter called @C
create parameter called @D
command.Execute.
specified one more parameter than necessary but the code still works. Does
anyone know why it works? This is on a PDA connecting to SQLServer.
Thanks.
eg
sqlCommand command = new SqlCommand(connection, "INSERT INTO SomeTable
(A,B,C) VALUES (@A, @B, @C)");
create parameter called @A (couldn't be bothered typing code)
create parameter called @B
create parameter called @C
create parameter called @D
command.Execute.