Viewing 2 posts - 1 through 3 (of 3 total)
Try the following code, it should get you started:
SqlCommand cmd = new SqlCommand("usp_Table_Action");
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter param = new SqlParameter("@ReturnCode", SqlDbType.Int);
param.Direction = ParameterDirection.ReturnValue;
cmd.Parameters.Add(param);
December 5, 2007 at 4:14 pm
Another very important reason for using parameters that I didn't see covered in the article is that of security. Using parameters provides a very important layer of defence to...
November 8, 2007 at 11:01 pm
Viewing 2 posts - 1 through 3 (of 3 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy