I have been running a query in C# / SQL Server using SqlDataAdapter and adding parameters (Parameters.AddWithValue) in the form eg da.SelectCommand.Parameters.AddWithValue(“@BSAgeParam2”, Convert.ToInt32(BSAge_2.Texts)).
I am looking to retrieve the actual raw string run (without the @ notation) in order to duplicate the query in SSMS and double check the results.
IS there a way to do this?