protected void Page_Load(object sender, EventArgs e) { string connString = "Driver={Microsoft ODBC for Oracle};Server=Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.55.60.140)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=MMS5x10)));User Id=mms5x_manager;Password=mms5x_manager;"; OracleConnection conn = new OracleConnection(connString); if (conn.State != ConnectionState.Open) conn.Open(); OdbcDataAdapter da = new OdbcDataAdapter("SELECT * FROM CO_DOWNLOAD_HISTORY", conn); DataSet ds = new DataSet("STDTABLE"); da.Fill(ds, "STDTABLE"); GridView1.DataSource = ds.DefaultViewManager; GridView1.DataBind(); // Close connection if (conn.State == ConnectionState.Open) conn.Close(); }
OracleConnection
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)