I have db whose name is shreyanshdb] that is it has a closing square bracket. I wanted to perform the backup of this db using SQL query in SQL server. But it is throwing me an exception: Transact-sql exception.
Here is the command : BACKUP DATABASE [shreyanshdb]] to disk = 'c:\DB'
I really don't know how do i escape the closing square bracket...