Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switch services using the Version drop-down list. Learn more about navigation.
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 |