Επεξεργασία

Κοινή χρήση μέσω


.alter database prettyname command

Applies to: ✅ Azure Data Explorer

Alters a database's pretty (friendly) name.

Permissions

You must have at least Database Admin permissions to run this command.

Syntax

.alter database DatabaseName prettyname 'DatabasePrettyName'

Learn more about syntax conventions.

Parameters

Name Type Required Description
DatabaseName string ✔️ The name of the database to alter.
DatabasePrettyName string ✔️ The new pretty name for the database.

Returns

This command returns a table with the following columns:

Output parameter Type Description
DatabaseName string The name of the database.
PrettyName string The pretty name of the database.
Status string The status of the operation.

Example

The following example changes the TestDatabase pretty name to NewDatabasename.

.alter database TestDatabase prettyname 'NewDatabasename'

Output

DatabaseName PrettyName Status
TestDatabase NewDatabasename Complete