Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to connect to oracle using OdbcConnection

Status
Not open for further replies.

sjh

Programmer
Oct 29, 2001
263
0
0
US
Hi,
I am using OdbcConnection to connect to a oracle database. cboODBC is a dropdown list that contains the DSNs. If the selected value is an Oracle DB, do I need to prompt the user for userid and password to connect to the database? Or is this done automatically by the system?

Thank you! - Susie

Dim myConn As New OdbcConnection
myConn.ConnectionString = "DSN=" & cboODBC.Text & ""
Try
myConn.Open()
Catch ex As Exception
MsgBox(ex.Message)
End Try


 
Are you using a dataAdapter to do this connection.. if not you would have to supply the UserId,Password, and you might even have to supply the server name... If you give me more information I might be able to help more...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top