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

Database

 
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 
I figured out my own problem just after posting the message. It was a subtle syntactical error.

Nonetheless, I have spent many days trying to debug datatype errors, in which using cmd.Parameters.AddWithValue(...) couldn't seem to get the type right. Finally I began adding the parameters first, with the type specified using cmd.Parameters.Add(..., type) and then adding the value to the parameter.

So far this has eliminated the frustrations of my commands not working. However, the jury is still out for me as to whether using parameters is THAT much more convenient or less work that concatenating values into a string. I have a pretty good system worked out where I separate each concatenated value on a separate line my code (for readability) and use a quote(arg) function and formatDate(arg) function for convenience.

Public Function quote(arg as String) as String
Return chr(34) + arg + chr(34)
End Function

You get the idea.

I find it simpler to debug a query in which I can see all the values by simply printing the string to the debug window, rather than iterating through the parameters collection manually in the immediate window.
GeneralRe: Using Parameterized queries in OLEDB [modified] Pin
Wendelius4-Sep-08 12:17
mentorWendelius4-Sep-08 12:17 
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 

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.