Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim mydeptno, mydname As String
Dim connectStr As String = "User Id=scott;Password=tiger;Data Source=Ora92"
Dim con As New OracleConnection(connectStr)
Dim objAdapter As OracleDataAdapter = New OracleDataAdapter()
objAdapter.SelectCommand = New OracleCommand("Select * from emp", con)
Dim objDataSet As DataSet = New DataSet("objDataSet")
objAdapter.Fill(objDataSet, "Emp")
Me.myDataGrid.SetDataBinding(objDataSet, "EMP")
con.Close()
con.Dispose()
End Sub
12-27 | 1795 | |||
12-11 | 1304 | |||
53 | 03-15 | 1050 | ||
52 | 01-31 | 1209 | ||
51 | 01-31 | 1008 | ||
50 | 01-31 | 904 | ||
49 | 01-19 | 1211 | ||
48 | 01-11 | 1071 | ||
47 | 01-03 | 1552 | ||
46 | 12-27 | 1795 | ||
45 | 12-19 | 1318 | ||
44 | 12-14 | 1311 | ||
43 | 12-11 | 1304 | ||
42 | 12-09 | 1049 | ||
41 | 12-01 | 1213 | ||
40 | 12-01 | 1423 | ||
39 | 12-01 | 927 |
댓글 없음:
댓글 쓰기