0 pts.
 Connecting to Oracle database from web page using Visual Studio/Visual Basic
I have been able to use OleDB to connect to Oracle databases with no problem in Windows forms applications on my development machine that is both my IIS server and Oracle server. But when I try to do it in a Web application I get the error message 'Oracle client and networking components not found'. This is the sytax I use for the connection: OleDb.OleDbConnection("Provider=MSDAORA.1;User ID=tpocs;Password=manager;Data Source=tdsbasic;persist security info=False"). Can anyone help? Thanks.

Software/Hardware used:
ASKED: March 19, 2005  12:54 PM
UPDATED: March 21, 2005  5:45 PM

Answer Wiki:
Oracle has .Net managed drivers download those at the following url: http://search.microsoft.com/search/results.aspx?View=en-us&p=1&c=1&st=b&qu=oracle+managed+provider+for+.net&swc=1&na=33&cm=512 Once you install those you need to add refrence to System.data.oracleClient.dll. Try those... here is the code to do it.. Public Const strConn As String = "Data Source=ORACLESERVERNAME;User ID=USERID;Password=PASSWORD;" you have to substitute the ORACLESERVERNAME AND USERID AND PASSWORD in your environment.. here is the rest of it Dim strDSQL As String = "select * from oracledb" Dim daDetail As New OracleClient.OracleDataAdapter(strDSQL, strConn) Dim ds As New DataSet() daDetail.Fill(ds) Thats it..
Last Wiki Answer Submitted:  March 21, 2005  5:45 pm  by  Tmalik   0 pts.
All Answer Wiki Contributors:  Tmalik   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _