G
Guest
Hi,
I am having trouble with a little piece of code that formats an SQL string.
I am not looking for folks to debug my code, what I would like to know is how
can I see the string that I've built before it is executed, so I can fix
whatever is wrong.
//snippet
....lots of code building the string
sql = String.Format(sql, values.ToArray());
....more code, data connection, sql command, etc..
The exception is being thrown right at this line (above) and I would like to
view it. If I were doing vb, I would just say msgbox sql
what is the asp.net - c# way of doing this?
Thanks.
I am having trouble with a little piece of code that formats an SQL string.
I am not looking for folks to debug my code, what I would like to know is how
can I see the string that I've built before it is executed, so I can fix
whatever is wrong.
//snippet
....lots of code building the string
sql = String.Format(sql, values.ToArray());
....more code, data connection, sql command, etc..
The exception is being thrown right at this line (above) and I would like to
view it. If I were doing vb, I would just say msgbox sql
what is the asp.net - c# way of doing this?
Thanks.