Create a database name using the string, the database will be created successfully.
Example:
if db_id('Database1') is null create database Database1
The command completed successfully.
But create the database name using the full number, it has a problem
Example:
if db_id('1234567890') is null create database 1234567890
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '1234567890'.
Is there something wrong with my request?
source share