Hello -
I would like to print the SQL query and the values that are being passed to a datasource.
I have used the following command and it shows the query but not the values:
Debug.Print("The SQL string = " + sdsFacilityList.SelectCommand.ToString())
This is the result that I get:
The SQL string = SELECT path, facility_name, document_date, title, division, branch, program, subprogram, project_managers, authors, category, object_name, cimid, combined FROM vw_derr_combined WHERE (branch LIKE @branch) AND (program LIKE @program) AND (subprogram LIKE @subprogram) AND (facility_name LIKE @facility_name) AND (combined LIKE '%' + @combined + '%')
Is there a way to show the query as it is being sent to the database with the values in it?
Thanks,
MxW
I would like to print the SQL query and the values that are being passed to a datasource.
I have used the following command and it shows the query but not the values:
Debug.Print("The SQL string = " + sdsFacilityList.SelectCommand.ToString())
This is the result that I get:
The SQL string = SELECT path, facility_name, document_date, title, division, branch, program, subprogram, project_managers, authors, category, object_name, cimid, combined FROM vw_derr_combined WHERE (branch LIKE @branch) AND (program LIKE @program) AND (subprogram LIKE @subprogram) AND (facility_name LIKE @facility_name) AND (combined LIKE '%' + @combined + '%')
Is there a way to show the query as it is being sent to the database with the values in it?
Thanks,
MxW