I am attempting to create a database snapshot with SQL Server 2008 R2 using the following T-SQL code.
CREATE DATABASE SNAP_myDB_0900
ON
(NAME = myDB, FILENAME = 'C:\myDB_0900.SNAP')
AS SNAPSHOT OF myDB
I get the following error:
The file 'myDB' does not exist in database 'myDB'
This code works with other databases in the same instance but not this one. I have double checked the file name and it is correct.
Why am I getting this error?