I am using ado.net to access sql server I have costum Stored Procedure I am executing it using ado.net :
SqlCommand command = new SqlCommand("Custom",con);
and i am sending the parameters like this :
command.Parameters.Add(new SqlParameter("@Parm1",SqlDbType.Int,0,"Parm1"));
command.Parameters.Add(new SqlParameter("@Parm2",SqlDbType.Int,0,"Parm2"))
it dose not work and it did not give me an error as well it is the first time to work without DAL generator
to make it work add this line before set the params :
and set the params using :
🙂