You are currently browsing legacy 4.1 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Operations: Server: How to Get the Names of Databases on a Server

To download available database names from a server, use the GetDatabaseNames operation.

Syntax

public GetDatabaseNamesOperation(int start, int pageSize)

Parameters
pageSize int Maximum number of records that will be downloaded
start int Number of records that should be skipped.
Return Value
string[] Names of databases on a server

Example

var operation = new GetDatabaseNamesOperation(0, 25);
string[] databaseNames = store.Maintenance.Server.Send(operation);