Find postgres servers on LAN

Find postgres servers on LAN

Postby dghundt » Thu 07 Aug 2008 00:52

For microsoft sql server, there are C# methods that allow one to identify any mssql servers and database names on the lan. Are there any methods in postgresqldirect.net that I can use to find any and all servers on LAN?
dghundt
 
Posts: 38
Joined: Thu 24 Aug 2006 01:16

Postby AndreyR » Thu 07 Aug 2008 08:21

You can use the PgSqlDataSourceEnumerator class.
More information is available here:

http://www.devart.com/dotconnect/postgresql/docs/Devart.Data.PostgreSql~Devart.Data.PostgreSql.PgSqlDataSourceEnumerator_members.html

http://msdn.microsoft.com/en-us/library/system.data.sql.sqldatasourceenumerator.aspx
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for PostgreSQL