-
private void button1_Click(object sender, EventArgs e)
{
OleDbConnection conn = new OleDbConnection(" Provider=MSDAORA;Data Source=192.168.0.36:1521/orcl;User ID=scott;Password=tiger;Unicode=True");
con.Open();
OleDbDataAdapter oda = new OleDbataAdapter("Select * from emp ",con);
DataTable dt = new DataTable();
oda.Fill(dt);
dataGridView1.DataSource= dt;
con.Close;
}
'c#' 카테고리의 다른 글
페이스북에 글 등록하기 (0) 2016.07.11 foreach 문 array문 (0) 2016.07.08 Miscillaneous Operators (0) 2016.07.08 c# day2 (0) 2016.06.28 c#_Visual Studio2015-Day1 (0) 2016.06.27