Call the GetServerDatabaseUserNames method to retrieve a list of existing users defined with rights for an existing database on a database server. Use the DatabaseName parameter to specify an existing database from which to retrieve a list of users.
This method is only valid when the engine is running as a database server and the EngineType is set to etServer.