Using Oracle Developer Tools with Visual Studio - The Code Behind Form1
(Page 4 of 5 )
The next paragraph shows the code behind Form1 in the click event of the command Button1 as shown.

You instantiate a new connection and set its value the same as the one provided by the ODT which you created by dropping the "Countries" table on the form. The rest of the code follows the properties of the Oracle connection which you may want to look up in the object browser. To know the server version, the connection has to be open. The open state of a connection has a value 1 and the closed state a value of 0.
When you build the project and click on the button, you will see the results for this connection as shown in the next picture. It is showing the password because we asked for it in an earlier screen

Next: Displaying Data from the Employees Table >>
More MS SQL Server Articles
More By Jayaram Krishnaswamy