.Net to Oracle Connectivity using ODBC .NET
Posted
by
SAMIR BHOGAYTA
on Samir ASP.NET with C# Technology
See other posts from Samir ASP.NET with C# Technology
or by SAMIR BHOGAYTA
Published on 2011-03-15T07:57:00.001-07:00
Indexed on
2011/03/15
16:18 UTC
Read the original article
Hit count: 595
.Net to Oracle Connectivity using ODBC .NET
using Microsoft
.Data.Odbc;
private void Form1_Load(object sender, System.EventArgs e)
{
try
{
OdbcConnection myconnection= new OdbcConnection ("DSN=TrialDSN");
OdbcDataAdapter myda = new OdbcDataAdapter ("Select * from EMP", myconnection);
DataSet ds= new DataSet ();
myda.Fill(ds, "Table");
dataGrid1.DataSource = ds ;
}
catch(Exception ex)
{
MessageBox.Show (ex.Message );
}
}
© Samir ASP.NET with C# Technology or respective owner