P
probashi
Hi,
I have a SqlDataSource and there are 3 select parameters. I am using
this data source for a Grid View Control.
For my debugging purpose I would like to see the actual sql text going
to database (after evaluating all select parameters). I added a text
box to display the actual SQL text using the following, but it is
showing the parameters not the evaluated sql.
protected void SqlDataSource1_Selecting(object sender,
SqlDataSourceSelectingEventArgs e)
{
txtLog.Text += SqlDataSource1.SelectCommand;
}
I could run a SQL Profiler to find out the actual SQL text but I am
using Qracle 9i (I do not know who to set up a Profiler in Oracle)
Thanks
I have a SqlDataSource and there are 3 select parameters. I am using
this data source for a Grid View Control.
For my debugging purpose I would like to see the actual sql text going
to database (after evaluating all select parameters). I added a text
box to display the actual SQL text using the following, but it is
showing the parameters not the evaluated sql.
protected void SqlDataSource1_Selecting(object sender,
SqlDataSourceSelectingEventArgs e)
{
txtLog.Text += SqlDataSource1.SelectCommand;
}
I could run a SQL Profiler to find out the actual SQL text but I am
using Qracle 9i (I do not know who to set up a Profiler in Oracle)
Thanks