你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

.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