[ADO.NET]ODP.Net을 이용한 DataAdapter 예제
간단한 예제 입니다. 참고하세요~
Dim mydeptno, mydname As String:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Dim connectStr As String = "User Id=scott;Password=tiger;Data Source=onj"
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()
| 12-27 | 2708 | |||
| 12-11 | 1956 | |||
| 53 | 03-15 | 1781 | ||
| 52 | 01-31 | 1936 | ||
| 51 | 01-31 | 2831 | ||
| 50 | 01-31 | 1487 | ||
| 49 | 01-19 | 1819 | ||
| 48 | 01-11 | 1694 | ||
| 47 | 01-03 | 2237 | ||
| 46 | 12-27 | 2708 | ||
| 45 | 12-19 | 1916 | ||
| 44 | 12-14 | 1894 | ||
| 43 | 12-11 | 1956 | ||
| 42 | 12-09 | 1541 | ||
| 41 | 12-01 | 1767 | ||
| 40 | 12-01 | 1973 | ||
| 39 | 12-01 | 1410 | ||
댓글 없음:
댓글 쓰기