473,508 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error Loging

Hi
Does anybody know i can log the parameters that are called to a Oracle
stored procedure with C#?
I am using ODP Data Provider for the connection.

Regards,
Mystique
Nov 6 '06 #1
1 1253
The easiest way may be to loop throught the command parameters
collection and manually build a string. For example:

StringBuilder sbQuery = new StringBuilder();
sbQuery.Append("Parameters ");
foreach (DbParameter param in command.Parameters)
{
sbQuery.Append("[");
sbQuery.Append(param.ParameterName);
sbQuery.Append("=");
if (param.Value != null)
{
sbQuery.Append(param.Value.ToString());
}
sbQuery.Append("]");
}

// Log(sbQuery.ToString());
Bill

Nov 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
6572
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
4179
by: Ottar | last post by:
I've made a program sorting incomming mail in public folder. The function runs every minute by using the form.timer event. In Access XP it runs for weeks, no problem. Access 2003 runs the same...
1
1239
by: Hiten | last post by:
Hi I am stucked at Connection with Database in My .Net program When i connect with Northwind SQL db it connects easily no errors but when i try to connect with my own created Database it gives me...
7
4979
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
2852
by: nethajireddy | last post by:
hello techies.. when i try to loging in windows xp machine, it's showing explorer.exe application error 0xc0000022 is coming, i do not know how and what to do, so can any one help...
0
1451
by: Ravi gowda | last post by:
Hi, i am getting Error on status bar :Applet trustfield Extapp not inited and web page will stops when loging in to a web site Please suggest on this issue Regards, Ravi,
1
1688
by: shiva359 | last post by:
Dear All , will changes done on a table data After a load with nonrecoverable option on a archive loging enabled Database be recorded in logs if we don't do a complete backup ...
3
2702
by: divina11 | last post by:
I'm writting a login script using JavaScript, can someone help with the parts I've commented? Thank you <HTML><HEAD> <TITLE>Login Program</TITLE> </HEAD> <SCRIPT> function validate() {
2
19404
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
1
2068
by: sanju4kk | last post by:
VB6..just reinstalled my os..this error occurs while am loging error: -2147217407 (80041001)
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.