While using Visual Studio 2010 for my ASP.NET website, we have code for a stored procedure call:
SqlDataAccess sqlDataAccess = new SqlDataAccess();
SqlParameter[] parameters =
{
new SqlParameter("@R", rptType.Replace("'", "''")),
new SqlParameter("@M", hybrDct["mod"].ToString().Replace("'", "''")),
new SqlParameter("@C", hybrDct["CG"].ToString().Replace("'", "''")),
new SqlParameter("@Ts$", hybrDct["TFields"].ToString().Replace("'", "''")),
};
sqlDataAccess.ProcName = "MyStoredProc";
sqlDataAccess.Parameters = parameters;
Is it possible to get the execute printed out for debugging purposes instead of finding out each individual SqlParameter and typing it in individually?
Thanks.
I use something like the following – everything goes through this and gets logged – you get the idea.