Click here to Skip to main content
15,896,063 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Help in Query?? Pin
Ashfield3-Sep-08 5:25
Ashfield3-Sep-08 5:25 
GeneralRe: Help in Query?? Pin
geekfromindia3-Sep-08 5:33
geekfromindia3-Sep-08 5:33 
GeneralRe: Help in Query?? Pin
geekfromindia3-Sep-08 5:42
geekfromindia3-Sep-08 5:42 
GeneralRe: Help in Query?? Pin
Ashfield3-Sep-08 7:34
Ashfield3-Sep-08 7:34 
QuestionSQL DTS help, need certain fields from excel sheet to update in DB Pin
a_kubiak3-Sep-08 3:34
a_kubiak3-Sep-08 3:34 
QuestionShowing precentage using GROUP BY clause Pin
Muammar©3-Sep-08 1:45
Muammar©3-Sep-08 1:45 
AnswerRe: Showing precentage using GROUP BY clause Pin
Paddy Boyd3-Sep-08 2:37
Paddy Boyd3-Sep-08 2:37 
GeneralRe: Showing precentage using GROUP BY clause Pin
Muammar©3-Sep-08 3:47
Muammar©3-Sep-08 3:47 
AnswerRe: Showing precentage using GROUP BY clause Pin
Ashfield3-Sep-08 2:41
Ashfield3-Sep-08 2:41 
GeneralRe: Showing precentage using GROUP BY clause Pin
Muammar©3-Sep-08 3:55
Muammar©3-Sep-08 3:55 
GeneralRe: Showing precentage using GROUP BY clause Pin
Ashfield3-Sep-08 5:19
Ashfield3-Sep-08 5:19 
Questionquery to get number of childs from parent child table Pin
sepel2-Sep-08 20:38
sepel2-Sep-08 20:38 
AnswerRe: query to get number of childs from parent child table Pin
Blue_Boy2-Sep-08 20:47
Blue_Boy2-Sep-08 20:47 
AnswerRe: query to get number of childs from parent child table Pin
razov2-Sep-08 23:48
razov2-Sep-08 23:48 

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.