日期:2014-05-18  浏览次数:20758 次

C#连接oracle(急)
用C#连接oracle连接字符串如下(报错,请高手写个完整的连接字符串)
"Provider=sqloledb;Data Source=local;Initial Catalog=db;uid=bizapp;pwd=sa";

------解决方案--------------------
C# code

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
             
      <add name="ConnectionString"
            connectionString="Data Source=orcl;Persist Security Info=True;User ID=hxjr;Password=123;Unicode=True"
            providerName="System.Data.OracleClient" />
    </connectionStrings>
</configuration>