Click here to Skip to main content
15,918,193 members
Home / Discussions / Database
   

Database

 
AnswerRe: Inserting data from an XML string in a table Pin
Wendelius4-Sep-08 8:29
mentorWendelius4-Sep-08 8:29 
QuestionBcp error Pin
si_694-Sep-08 0:29
si_694-Sep-08 0:29 
AnswerRe: Bcp error Pin
Wendelius4-Sep-08 8:26
mentorWendelius4-Sep-08 8:26 
QuestionReg: Handling Text Column in Trigger implementation Pin
Member 40084923-Sep-08 23:38
Member 40084923-Sep-08 23:38 
AnswerRe: Reg: Handling Text Column in Trigger implementation Pin
Wendelius4-Sep-08 8:17
mentorWendelius4-Sep-08 8:17 
QuestionUnion query.. I guess:) Pin
Muammar©3-Sep-08 9:19
Muammar©3-Sep-08 9:19 
AnswerRe: Union query.. I guess:) Pin
TheFM2343-Sep-08 9:32
TheFM2343-Sep-08 9:32 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 9:51
Muammar©3-Sep-08 9:51 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 10:33
Muammar©3-Sep-08 10:33 
AnswerRe: Union query.. I guess:) Pin
Wendelius3-Sep-08 9:35
mentorWendelius3-Sep-08 9:35 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 9:56
Muammar©3-Sep-08 9:56 
GeneralRe: Union query.. I guess:) Pin
Wendelius3-Sep-08 10:01
mentorWendelius3-Sep-08 10:01 
QuestionProblems with connecting with ODBC source Pin
Deques3-Sep-08 8:00
Deques3-Sep-08 8:00 
AnswerRe: Problems with connecting with ODBC source Pin
Wendelius3-Sep-08 11:11
mentorWendelius3-Sep-08 11:11 
GeneralRe: Problems with connecting with ODBC source Pin
Deques3-Sep-08 20:56
Deques3-Sep-08 20:56 
GeneralRe: Problems with connecting with ODBC source Pin
Wendelius4-Sep-08 8:56
mentorWendelius4-Sep-08 8:56 
Question[Message Deleted] Pin
TheMandolinMan3-Sep-08 7:58
TheMandolinMan3-Sep-08 7:58 
AnswerRe: Using Parameterized queries in OLEDB Pin
Wendelius3-Sep-08 8:21
mentorWendelius3-Sep-08 8:21 
GeneralRe: Using Parameterized queries in OLEDB Pin
Muammar©3-Sep-08 10:40
Muammar©3-Sep-08 10:40 
JokeRe: Using Parameterized queries in OLEDB Pin
Wendelius3-Sep-08 10:51
mentorWendelius3-Sep-08 10:51 
GeneralRe: Using Parameterized queries in OLEDB Pin
TheMandolinMan4-Sep-08 11:56
TheMandolinMan4-Sep-08 11:56 
GeneralRe: Using Parameterized queries in OLEDB [modified] Pin
Wendelius4-Sep-08 12:17
mentorWendelius4-Sep-08 12:17 
Good to hear you got it solved.

I see your point, but I believe that parameters benefit you in many ways so I encourage you to use them.

One idea that may come handy: Derive your own class from OleDbCommand and use that for database operations. If you need to see the statement and the values for parameters, create a helper method in derived class (of course you can separate this to a helper class). In that method list all the info you need to the output window. Something like:
public void WhatsInside() {
   Debug.WriteLine(this.CommandText);
   foreach (OleDbParameter param in this.Parameters) {
      Debug.WriteLine(param.DbType + param.value + ...);
   }
   other possible info...
}


Added:
This method can be called from immediate window while debugging so calls to it doesn't have to exist in code. Also this should be included only in debug builds.

Mika

modified on Wednesday, September 10, 2008 4:41 PM

QuestionHelp in Query?? [modified] Pin
geekfromindia3-Sep-08 5:11
geekfromindia3-Sep-08 5:11 
AnswerRe: Help in Query?? Pin
Blue_Boy3-Sep-08 5:20
Blue_Boy3-Sep-08 5:20 
GeneralRe: Help in Query?? Pin
geekfromindia3-Sep-08 5:23
geekfromindia3-Sep-08 5:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.