General discussion


ASP.Net Oracle Connection

By bsmgopal1984 ·
Dear all,
Please let me know, how to connect oracle with web application.My code below:
public WebForm1()
ConnStr="Provider=msdaora.1;DSN=assetmgr;User Id=scott;Password=tiger;";
conn = new OleDbConnection(ConnStr);

dataadpt = new OleDbDataAdapter("Select * from tblast",conn);
cbuild = new OleDbCommandBuilder(dataadpt);
dataSet1=new DataSet("tblast");

i had created the assetmgr in ODBC datasource Administrator. But it was not asking any test connection.
in which I gave assetmgr as data source name.
i gave user name as scott
server name as what it is...
Please let me know
Thanks in advance

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums