I am trying to execute a stored procedure with this declaration:
ALTER PROCEDURE [dbo].[getByName] @firstName varchar, @lastName varchar AS ...
Please add CommandaType to SQLCommand.
e.g: scmd.CommandType = CommandType.StoredProcedure;