Use sp_dboption to
set the database to single-user mode, and then run sp_renamedb,
specifying the new name.
See the Reference Manual:Building Blocks for
more information on these procedures.
-
If other identifiers are reserved words, use:
-
Run sp_checkreswords in master and
in each user database to display the names and locations of conflicting
identifiers.
For more information about sp_rename and sp_checkreswords and
methods for avoiding reserved word conflicts, see the Reference
Manual.