要在服务器端装Oracle的,你的机器要是开发也要装。
在Web.config中添加数据库连接的字符窜
</system.web>
<appSettings>
<add key="ConnectionString" value="Provider=MSDAORA.1;User ID=wltmis;password=wltmis;Data Source=wltmis;Persist Security Info=False;" />
</appSettings>
protected OleDbConnection myConnection;//定义一个OleDB的连接
myConnection = new OleDbConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]);
在Web.config中添加数据库连接的字符窜
</system.web>
<appSettings>
<add key="ConnectionString" value="Provider=MSDAORA.1;User ID=wltmis;password=wltmis;Data Source=wltmis;Persist Security Info=False;" />
</appSettings>
protected OleDbConnection myConnection;//定义一个OleDB的连接
myConnection = new OleDbConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货