【问题标题】: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 Studio 2013
【发布时间】:2014-05-23 15:15:24
【问题描述】:

请告诉我如何使用 asp.net 连接到 oracle 数据库 11g 我的机器配置是 64 位 windows 8 和 Visual Studio 2013。我正在使用 sql server 但对 oracle 来说是新手 请帮助我 我真的被困住了 谢谢

【问题讨论】:

    标签: c# asp.net sql oracle oracle11g


    【解决方案1】:

    Link

    上面的链接可能有用

    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];
    }
    

    【讨论】:

      猜你喜欢
      • 2015-01-26
      • 1970-01-01
      • 2019-03-18
      • 1970-01-01
      • 2011-04-18
      • 2014-03-28
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      相关资源
      最近更新 更多