Page 1 of 1

GetServerList

Posted: Mon 11 May 2009 21:15
by ultraman69
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 !

Posted: Tue 12 May 2009 15:07
by Shalex
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.

Posted: Tue 12 May 2009 17:48
by ultraman69
Thanks ! Works fine !