O
Oleg Ogurok
Hi all,
I'm defining a query as "INSERT INTO Table (Col1, Col2) VALUES (@Val1,
@Val2)"
Then I'm creating a SqlCommand and adding the parameters @Var1 and @Var2 and
their corresponding values using sqlCommand.Parameters.Add(....) I
understand the framework then substitutes the formal parameters for their
actual values and passes the resulting query into the database for
execution.
Is there a way to get that actual query string being passed into the
database? Some of my queries fail, and I have no idea how to troubleshoot
them.
Thanks,
-Oleg.
I'm defining a query as "INSERT INTO Table (Col1, Col2) VALUES (@Val1,
@Val2)"
Then I'm creating a SqlCommand and adding the parameters @Var1 and @Var2 and
their corresponding values using sqlCommand.Parameters.Add(....) I
understand the framework then substitutes the formal parameters for their
actual values and passes the resulting query into the database for
execution.
Is there a way to get that actual query string being passed into the
database? Some of my queries fail, and I have no idea how to troubleshoot
them.
Thanks,
-Oleg.