62,243
社区成员




protected void Page_Load(object sender, EventArgs e)
{
string orastr = "Data Source=211.211.211.154;User Id=xxxx;Password=xxxxx;Integrated Security=yes";
if (!Page.IsPostBack)
{
OracleConnection conn = new OracleConnection(orastr);
try
{
conn.Open();
conn.Close();
Response.Write("可喜可贺,连接成功");
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
}
string orastr = "Data Source=211.211.211.154;Initial Catalog=数据库实例名;User Id=xxxx;Password=xxxxx;Integrated Security=yes