GetServerList

GetServerList

Postby ultraman69 » Mon 11 May 2009 21:15

Can anyone give me an example on how to use the Devart.Data.Oracle.OracleHome.GetServerList() method (C# or VB.NET) ? This is not a static class, but I can't instanciate an object because I get "The type 'Devart.Data.Oracle.OracleHome' has no constructors defined" error... never seen that.

Thanks !
ultraman69
 
Posts: 8
Joined: Fri 08 May 2009 19:15

Postby Shalex » Tue 12 May 2009 15:07

The Devart.Data.Oracle.OracleHome class represents information about Oracle home. The GetServerList() method of this class can be accessed in the following way:
OracleConnection.Homes.DefaultHome.GetServerList();

As an alternative, you can use the static method GetServerList() of the Devart.Data.Oracle.OracleConnection class.
Shalex
Devart Team
 
Posts: 7344
Joined: Thu 14 Aug 2008 12:44

Postby ultraman69 » Tue 12 May 2009 17:48

Thanks ! Works fine !
ultraman69
 
Posts: 8
Joined: Fri 08 May 2009 19:15


Return to dotConnect for Oracle