5.1 Opening a Database Connection

Table of Contents Previous Next


5 Using the .NET Connector : 5.1 Opening a Database Connection

An EDBConnection object is responsible for handling the communication between an instance of Advanced Server and a .NET application. Before you can access data stored in an Advanced Server database, you must create and open an EDBConnection.
1.
Import the namespace EnterpriseDB.EDBClient.
2.
Create an instance of EDBConnection.
3.
Initialize the EDBConnection object by passing a connection string as a parameter to the constructor for the EDBConnection class.
4.
Call the Open method of the EDBConnection object to open the connection.

5 Using the .NET Connector : 5.1 Opening a Database Connection

Table of Contents Previous Next