0

I have a SQL Server database named db-pwapp-lostandfound-dev, and I want to take a snapshot of it, but I am getting this error - seems like SQL Server does not like - in the name:

enter image description here

I tried to surround the name by [], but I still have the same issue:

Any advice ?

Thanks

4
  • 1
    Did you try with quotes? Oct 16, 2021 at 5:46
  • 2
    what is your SQL server version ?? i create a db with dash in name and create snapshot without problems in SQL Server 14 with this cmd CREATE DATABASE Test_Snapshot ON (NAME = [Test-db] , FILENAME = 'H:\StackOverFlow\Test_DB_SS.ss') AS SNAPSHOT OF [Test-db] Oct 16, 2021 at 6:28
  • 1
    @DávidLaczkó yes did not work
    – John John
    Oct 16, 2021 at 7:56
  • @MahdiRahimi THE VERSION IS ms sql AZURE rtm - 12.0.2000.8
    – John John
    Oct 16, 2021 at 8:06

1 Answer 1

1

The issue is that you are using Azure SQL Database, and it does not support CREATE DATABASE AS SNAPSHOT.

7
  • thanks for the info.. so how i can achieve what i am looking for then?
    – John John
    Oct 16, 2021 at 9:32
  • I have no idea what you are looking for :-). You will need to elaborate Oct 16, 2021 at 9:39
  • 1
    Note! If you want to manage the server fully, then why did you selected to use a fully managed platform as a service (PaaS) database? The basic idea of using a fully managed service is that it is managed = meaning that someone else (Microsoft) manages it for you. All backups are managed automatically by Microsoft when you sue Azure SQL DATAABSE. Oct 16, 2021 at 9:40
  • now this what the customer chose .. i do not have the ability to change this at this stage
    – John John
    Oct 16, 2021 at 9:42
  • 1
    i created another thread for what i need exactly @ stackoverflow.com/questions/69594385/…
    – John John
    Oct 16, 2021 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.