Всем доброго дня.
Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
Sep 23 2016 18:13:56
Copyright (c) Microsoft Corporation
Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
1. Файлы баз данных храняться в Azure Blog storage
2. Создаю снапшот базы
CREATE DATABASE [Snapshot_MyDB] ON (NAME = [MyDB], FILENAME = 'https://********/MyDB_Snapshot.ss') AS SNAPSHOT OF [MyDB]
Создается без вопросов
3. Пытаюсь ревертать базу к снапшоту
ALTER DATABASE [MyDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
RESTORE DATABASE [MyDB] FROM DATABASE_SNAPSHOT = 'Snapshot_MyDB';
И вот тут получаю ошибку
Msg 5120, Level 16, State 145, Line 2
Unable to open the physical file "https://********/MyDB_log.ldf". Operating system error 183: "183(Cannot create a file when that file already exists.)".
Msg 5024, Level 16, State 2, Line 2
No entry found for the primary log file in sysfiles1. Could not rebuild the log.
Msg 5028, Level 16, State 2, Line 2
The system could not activate enough of the database to rebuild the log.
Msg 3013, Level 16, State 1, Line 2
RESTORE DATABASE is terminating abnormally.
Подскажите, такой откат к снапшоту для моей версии сервера не работает в принципе для баз хранимых в Azure Blog storage?
Может я чегото не так делаю, но найти решение не могу? :(
Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
Sep 23 2016 18:13:56
Copyright (c) Microsoft Corporation
Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
1. Файлы баз данных храняться в Azure Blog storage
2. Создаю снапшот базы
CREATE DATABASE [Snapshot_MyDB] ON (NAME = [MyDB], FILENAME = 'https://********/MyDB_Snapshot.ss') AS SNAPSHOT OF [MyDB]
Создается без вопросов
3. Пытаюсь ревертать базу к снапшоту
ALTER DATABASE [MyDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
RESTORE DATABASE [MyDB] FROM DATABASE_SNAPSHOT = 'Snapshot_MyDB';
И вот тут получаю ошибку
Msg 5120, Level 16, State 145, Line 2
Unable to open the physical file "https://********/MyDB_log.ldf". Operating system error 183: "183(Cannot create a file when that file already exists.)".
Msg 5024, Level 16, State 2, Line 2
No entry found for the primary log file in sysfiles1. Could not rebuild the log.
Msg 5028, Level 16, State 2, Line 2
The system could not activate enough of the database to rebuild the log.
Msg 3013, Level 16, State 1, Line 2
RESTORE DATABASE is terminating abnormally.
Подскажите, такой откат к снапшоту для моей версии сервера не работает в принципе для баз хранимых в Azure Blog storage?
Может я чегото не так делаю, но найти решение не могу? :(