Web Development

General discussion


ASP.Net Oracle Connection

By bsmgopal1984 ·
Dear all,
Please let me know, how to connect oracle with asp.net 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.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums