Tutorials
ODP.NET
ODP.NET - Retrieving Data Using OracleDataReader
Using keyword in Visual Basic 2005The above program can be made simple by using the Using statement together with ODP.NET classes as follows:
The Using keyword is new in Visual Basic 2005, which internally generates try and finally blocks around the object being allocated and calls Dispose() for you saving you the hassle of manually creating it.
The objects created using the Using keyword are automatically erased (and respective resources would be automatically cleared) from the memory once it is out of using scope. Even though it is very flexible to use the Using statement, for the sake of clarity, we will go without using it in the examples of this book.
First Page: ODP.NET - Retrieving Data Using OracleDataReader
| nice code |