skip to main content
Developing ADO.NET Applications : Microsoft .NET Public Objects/Interfaces Supported : OpenAccessConnection Object
 

OpenAccessConnection Object

In addition to the public properties of the Connection object, the OpenAccessConnection object supports the properties described in the following table. Some properties return the values specified for the corresponding connection string attribute (see Specifying Connection Options for information on the connection string attributes).
For information about other properties and methods supported, refer to the .NET Client’s online help and the Microsoft .NET Framework SDK documentation.
 
Table 34: Properties of the OpenAccessConnection Object 
Property
Description
ApplicationId
Specifies the application ID that identifies the client application to the OpenAccess service. This attribute is only required when the OpenAccess SDK service you are connecting to has been configured to limit access to specific applications. For more information about using application IDs to limit access to the services, refer to the OpenAccess SDK Administrator’s Guide.
Host
Returns the value specified for the Host attribute in the connection string.
Port
Returns the value specified for the Port attribute in the connection string.
ServerDatasource
Returns the value specified for the ServerDatasource attribute in the connection string.
ServerVersion
Returns the name and version of the database that the object is connected to.
NOTE: To avoid dead connections being kept open on the database server, you must close or dispose every opened Connection object before it goes out of scope. Opened connections are not closed automatically when the memory is reclaimed by the garbage collector.