Visual Studio连接Oracle数据库
时间:2021-07-01 10:21:17
帮助过:76人阅读
System;
using Oracle.ManagedDataAccess.Client;
//引用OracleConnection类所在的命名空间
namespace OracleDemo
{
static class Program
{
static void Main()
{
using (
var connection =
new OracleConnection(
"Data Source=test;Persist Security Info=True;User ID=user;Password=123456;"))
{
connection.Open();
Console.WriteLine("连接成功!!!");
}
Console.ReadLine();
}
}
}
Visual Studio连接Oracle数据库
标签:name ref pen tools vs2015 nec sys http eve