I am using SQLserver 2008 R2 edition. I am trying to create a database using SQL CMD.
When I try to run the following command
Sqlcmd -S 10.2.202.213 -U sa -P 123@123 -Q "create database 125Build5"
I get the following error:
Msg 102, Level 15, State 1, Server WS-INBLR567, Line 1 Incorrect syntax near '125'.
If I use the database name that does not start with a number, something like 'Build5125', then it works. However I can create the database from SSMS without any problem.