Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: HOW CAN I CONNECT FROM VISUAL BASIC TO ORACLE 10G Pin
Dave Kreskowiak7-Mar-07 5:48
mveDave Kreskowiak7-Mar-07 5:48 
GeneralRe: HOW CAN I CONNECT FROM VISUAL BASIC TO ORACLE 10G Pin
Marcus J. Smith7-Mar-07 9:52
professionalMarcus J. Smith7-Mar-07 9:52 
QuestionCheck Database after every 5 Seconds? Pin
Abubakarsb6-Mar-07 23:44
Abubakarsb6-Mar-07 23:44 
AnswerRe: Check Database after every 5 Seconds? Pin
Dave Kreskowiak7-Mar-07 5:47
mveDave Kreskowiak7-Mar-07 5:47 
AnswerRe: Check Database after every 5 Seconds? Pin
Parwej Ahamad7-Mar-07 5:51
professionalParwej Ahamad7-Mar-07 5:51 
AnswerRe: Check Database after every 5 Seconds? Pin
Guffa7-Mar-07 7:36
Guffa7-Mar-07 7:36 
Questionunnamed parameter [modified] Pin
lopashree6-Mar-07 23:05
lopashree6-Mar-07 23:05 
AnswerRe: unnamed parameter Pin
Dave Kreskowiak7-Mar-07 5:45
mveDave Kreskowiak7-Mar-07 5:45 
Just give the parameters any name you want. In OleDB, named parameters are not supported, and are ignored, but the order in which the parameters are added MUST match the order of the question marks in your SQL statement.

You are also missing the parameter data types. You can do what you're doing and it might work, but it's always a good idea to specify the database data types for each of your parameters. Otherwise, the parameter objects will "guess" at what they're supposed to be by looking at the type of data that is being passed into it.
cmd.Parameters.Add(New OleDbParameter("@name", OleDbType.VarChar, 30, name))
cmd.Parameters.Add(New OleDbParameter("@skill", OleDbType.VarChar, 30, skill))
cmd.Parameters.Add(New OleDbParameter("@city", OleDbType.WChar, 20, city))
cmd.Parameters.Add(New OleDbParameter("@year", OleDbType.Integer, year))
cmd.Parameters.Add(New OleDbParameter("@mail", OleDbType.WChar, 30, mail))
cmd.Parameters.Add(New OleDbParameter("@exts", OleDbType.VarChar, 5, exts))



Dave Kreskowiak
Microsoft MVP - Visual Basic


QuestionInclusion of Finger Print Authenticator in VB.Net Project Pin
ssonuh6-Mar-07 22:59
ssonuh6-Mar-07 22:59 
AnswerRe: Inclusion of Finger Print Authenticator in VB.Net Project Pin
Dave Kreskowiak7-Mar-07 5:36
mveDave Kreskowiak7-Mar-07 5:36 
GeneralRe: Inclusion of Finger Print Authenticator in VB.Net Project Pin
ssonuh9-Mar-07 21:54
ssonuh9-Mar-07 21:54 
Questionerror in vb.net Pin
ajay588866-Mar-07 22:43
ajay588866-Mar-07 22:43 
AnswerRe: error in vb.net Pin
Dave Kreskowiak7-Mar-07 5:34
mveDave Kreskowiak7-Mar-07 5:34 
QuestionTest cases Pin
swathibhandarkar6-Mar-07 21:32
swathibhandarkar6-Mar-07 21:32 
AnswerRe: Test cases Pin
Colin Angus Mackay6-Mar-07 22:34
Colin Angus Mackay6-Mar-07 22:34 
QuestionCrystal Report Alerts and reading report values in code Pin
Shaurya_Rastogi6-Mar-07 21:17
Shaurya_Rastogi6-Mar-07 21:17 
Questionhow to use scroll bar in menuitems Pin
Jwalant Natvarlal Soneji6-Mar-07 21:15
Jwalant Natvarlal Soneji6-Mar-07 21:15 
AnswerRe: how to use scroll bar in menuitems Pin
Dave Kreskowiak7-Mar-07 5:22
mveDave Kreskowiak7-Mar-07 5:22 
QuestionRe: how to use scroll bar in menuitems Pin
Jwalant Natvarlal Soneji7-Mar-07 15:16
Jwalant Natvarlal Soneji7-Mar-07 15:16 
AnswerRe: how to use scroll bar in menuitems Pin
Dave Kreskowiak8-Mar-07 2:30
mveDave Kreskowiak8-Mar-07 2:30 
QuestionRe: how to use scroll bar in menuitems Pin
Jwalant Natvarlal Soneji8-Mar-07 15:41
Jwalant Natvarlal Soneji8-Mar-07 15:41 
AnswerRe: how to use scroll bar in menuitems Pin
Dave Kreskowiak9-Mar-07 12:18
mveDave Kreskowiak9-Mar-07 12:18 
QuestionRe: how to use scroll bar in menuitems Pin
Jwalant Natvarlal Soneji9-Mar-07 15:29
Jwalant Natvarlal Soneji9-Mar-07 15:29 
AnswerRe: how to use scroll bar in menuitems Pin
Dave Kreskowiak10-Mar-07 2:52
mveDave Kreskowiak10-Mar-07 2:52 
QuestionListview PrintPrivew Pin
Socheat.Net6-Mar-07 20:55
Socheat.Net6-Mar-07 20:55 

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.