What I am trying to do is create some arbitrary sql command with parameters, set the values and types of the parameters, and then return the parsed sql command - with parame
Joel Coehoorn is right, it's not just a simple string substitution or escape character adding, etc.
You can, however, view your parameters to see if your values are as you want them:
foreach (IDataParameter i in cmd.Parameters) { Console.WriteLine(i.Value.ToString()); }