Click here to Skip to main content
15,886,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB 2005 include a .exe file Pin
Tom Deketelaere22-Oct-07 22:39
professionalTom Deketelaere22-Oct-07 22:39 
QuestionCanceling background worker Pin
svanwass22-Oct-07 9:58
svanwass22-Oct-07 9:58 
AnswerRe: Canceling background worker Pin
Dave Kreskowiak23-Oct-07 2:08
mveDave Kreskowiak23-Oct-07 2:08 
QuestionConnection string in VB.Net 2003 Pin
kendo1722-Oct-07 7:12
kendo1722-Oct-07 7:12 
AnswerRe: Connection string in VB.Net 2003 Pin
Dave Kreskowiak22-Oct-07 8:41
mveDave Kreskowiak22-Oct-07 8:41 
GeneralRe: Connection string in VB.Net 2003 Pin
kendo1722-Oct-07 11:54
kendo1722-Oct-07 11:54 
GeneralRe: Connection string in VB.Net 2003 Pin
Dave Kreskowiak22-Oct-07 12:06
mveDave Kreskowiak22-Oct-07 12:06 
GeneralRe: Connection string in VB.Net 2003 Pin
kendo1722-Oct-07 12:25
kendo1722-Oct-07 12:25 
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
       Dim derbyConnection As OleDbConnection<br />
       Dim derbyCommand As OleDbCommand<br />
       Dim dataRow As OleDbDataReader<br />
       'MSDORA is the provider when working with Oracle<br />
       derbyConnection = New OleDbConnection("Provider=MSDAORA.1;User ID=oracle ken;password=tigger; data source=derby.com")<br />
       'opens the connection<br />
       derbyConnection.Open()       '''''the code falls over here<br />
       'executes the command and assigns it to the connection<br />
       derbyCommand = New OleDbCommand("Select EName from emp", derbyConnection)<br />
       dataRow = derbyCommand.ExecuteReader()<br />
       While dataRow.Read()<br />
           'displays data from the table<br />
           MessageBox.Show("Employee Name" & " " & dataRow(0))<br />
       End While<br />
       dataRow.Close()<br />
       derbyConnection.Close()<br />
   End Sub<br />



dave thanks for your help beforehand
GeneralRe: Connection string in VB.Net 2003 Pin
Dave Kreskowiak23-Oct-07 2:06
mveDave Kreskowiak23-Oct-07 2:06 
GeneralRe: Connection string in VB.Net 2003 Pin
kendo1723-Oct-07 2:30
kendo1723-Oct-07 2:30 
GeneralRe: Connection string in VB.Net 2003 Pin
Dave Kreskowiak23-Oct-07 3:45
mveDave Kreskowiak23-Oct-07 3:45 
GeneralRe: Connection string in VB.Net 2003 Pin
aransiola23-Oct-07 23:04
aransiola23-Oct-07 23:04 
GeneralRe: Connection string in VB.Net 2003 Pin
Dave Kreskowiak24-Oct-07 1:13
mveDave Kreskowiak24-Oct-07 1:13 
AnswerRe: Connection string in VB.Net 2003 Pin
AliAmjad22-Oct-07 23:14
AliAmjad22-Oct-07 23:14 
QuestionAbout the the .dll version I include in my application Pin
albeeeta22-Oct-07 6:31
albeeeta22-Oct-07 6:31 
AnswerRe: About the the .dll version I include in my application Pin
Dave Kreskowiak22-Oct-07 8:50
mveDave Kreskowiak22-Oct-07 8:50 
QuestionRe: About the the .dll version I include in my application Pin
albeeeta22-Oct-07 20:24
albeeeta22-Oct-07 20:24 
AnswerRe: About the the .dll version I include in my application Pin
Dave Kreskowiak23-Oct-07 1:50
mveDave Kreskowiak23-Oct-07 1:50 
AnswerRe: About the the .dll version I include in my application Pin
Dave Kreskowiak23-Oct-07 2:02
mveDave Kreskowiak23-Oct-07 2:02 
AnswerRe: About the the .dll version I include in my application Pin
AliAmjad22-Oct-07 23:09
AliAmjad22-Oct-07 23:09 
QuestionRe: About the the .dll version I include in my application Pin
albeeeta23-Oct-07 0:49
albeeeta23-Oct-07 0:49 
AnswerRe: About the the .dll version I include in my application Pin
AliAmjad23-Oct-07 1:16
AliAmjad23-Oct-07 1:16 
AnswerRe: About the the .dll version I include in my application Pin
albeeeta24-Oct-07 20:37
albeeeta24-Oct-07 20:37 
QuestionNeed some suggestions. Pin
BubbaGeeNH22-Oct-07 6:17
BubbaGeeNH22-Oct-07 6:17 
AnswerRe: Need some suggestions. Pin
Dave Kreskowiak22-Oct-07 9:48
mveDave Kreskowiak22-Oct-07 9: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.