How can I get Oracle Servers names in current computer Using C#
-
HI, How can I get Oracle Servers names in current computer Using C#. Suppose a list of DBMSs names are appeared in a list box. When I clicked in SQL server data base then it shows all the sql server data bases in my current computer. But now I need when I will click oracl then it will display the servers names and when i click a particular server it will ask for user name and password from me. So currently my main problem is how can I get oracle server name using C#. After getting server name I will be able to do the next steps.
-
HI, How can I get Oracle Servers names in current computer Using C#. Suppose a list of DBMSs names are appeared in a list box. When I clicked in SQL server data base then it shows all the sql server data bases in my current computer. But now I need when I will click oracl then it will display the servers names and when i click a particular server it will ask for user name and password from me. So currently my main problem is how can I get oracle server name using C#. After getting server name I will be able to do the next steps.
This will help you get a list of SQLservers just include using System.Data.Sql;
DataTable ListOfServersNames=new DataTable(); var sqlServers = SqlDataSourceEnumerator.Instance; ListOfServersNames= sqlServers.GetDataSources();
Now the datatable will contain the list of servernames available.