vs连接oracle数据库怎么连接不上,到底是哪里出问题了
using System.Data;using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OracleClient;
namespace WindowsFormsApplication8
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
OracleConnection conn = new OracleConnection();
conn.ConnectionString = "data source=database;user id=scott;password=472312";
conn.Open();
MessageBox.Show("open");
}
}
}