How to trace the Insert Query of Sql Data Source ?

L

Luqman

I have created a Insert Query in Sql Data Source using Oracle Database, with
the parameters, and its connected with DetailView Control.

When I try to Insert through DetailView Control, Illegal Variable
Name/Number Error occurs.

Is there any way I can trace or display on screen, what exactly the query is
being passed to the Oracle with the Values.

For example: If my Sql datasource has following query.

Insert into mytable(invoice_no,inv_date,item_no,qty)
values:)invoice_no,:inv_date,:item_no,:qty)

I need the query with the parameter values as under:-

Insert into mytable(invoice_no,inv_date,item_no,qty)
values(1241,'23-jun-2006',12,1200)

How can I trace and display the above query with the parameter values ?

I am using VS 2005.

Best Regards,

Luqman
 
E

Eliyahu Goldin

Parameters are processed by the database driver. I don't think you can see
the actual sql at any point prior the driver gets the statement.

Don't know much about Oracle tracing tools but there should be some, use
them.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top