I am eliminating the use of a really slow web service by connecting to the database directly via ADO.NET. The SP I am executing returns the results as XML (For XML Auto) and I am looking to store the response as a string. Would ExecuteScaler work or is their a better method of doing this.
SqlCommand cmd = new SqlCommand("iweb_spx_controls_attributes", sqlConn);
cmd.Parameters.Add(new SqlParameter("@page_idASPX", pageID));
cmd.Parameters.Add(new SqlParameter("@user_id", userID));
cmd.CommandType = CommandType.StoredProcedure;
string reSults = (string)cmd.ExecuteScalar();
return reSults;