简体   繁体   中英

connect to oracle 11g with asp.net my machine configuration is 64 bit windows 8 and visual studio 2013

请告诉我如何使用asp.net连接到oracle数据库11g。我的机器配置是64位Windows 8和Visual Studio2013。我正在使用sql server,但是oracle的新手请帮助我,我确实遇到了麻烦

Link

The above link might be useful

public DataTable myDataTable(string SQL, string ConnStr)
{
    OracleConnection cn = default(OracleConnection);
    DataSet dsTemp = null;
    OracleDataAdapter dsCmd = default(OracleDataAdapter);

    cn = new OracleConnection(ConnStr);
    cn.Open();

    dsCmd = new OracleDataAdapter(SQL, cn);
    dsTemp = new DataSet();
    dsCmd.Fill(dsTemp, "myQuery");
    cn.Close();
    return dsTemp.Tables[0];
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM