We've moved to http://sqlforge.us/blog/
public static string cmdToString(SqlCommand cmd) { var c = " "; var s = cmd.CommandText; for (int i = 0; i < cmd.Parameters.Count; i++) { s += c + cmd.Parameters[i].ParameterName; s += " = " + cmd.Parameters[i].Value; c = ", "; } return (s); }
No comments:
Post a Comment