Skip to content

Use valid SQL Database names#

Operational Excellence · SQL Database · Rule · 2020_12 · Awareness

Azure SQL Database names should meet naming requirements.

Description#

When naming Azure resources, resource names must meet service requirements. The requirements for SQL Database names are:

  • Between 1 and 128 characters long.
  • Letters, numbers, and special characters except: <>*%&:\/?
  • Can't end with period or a space.
  • Azure SQL Database names must be unique for each logical server.

The following reserved database names can not be used:

  • master
  • model
  • tempdb

Recommendation#

Consider using names that meet Azure SQL Database naming requirements. Additionally consider naming resources with a standard naming convention.

Notes#

This rule does not check if Azure SQL Database names are unique.

Comments