November 3, 2013 at 11:51 pm
Hello
I use bellow code to create a snapshot,but I have this error "Msg 5014, Level 16, State 3, Line 1
The file 'Exhibitor_Data' does not exist in database 'exhibitor'."
CREATE DATABASE ExhibitorSnapShot ON
( NAME = Exhibitor_Data,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\Exhibitor_Data_2013.ss')
AS SNAPSHOT OF exhibitor;
GO
Could you help me , how can I do this?
I'll appreciate your help
November 4, 2013 at 1:20 am
Hello
thanks for your answer
I create a file in db/properties/file with name Exhibitor_Data.
and execute my code again, but I have an error yet 🙁
Msg 5127, Level 16, State 1, Line 1
All files must be specified for database snapshot creation. Missing the file "exhibitor".
November 4, 2013 at 1:57 am
No, you have a misunderstanding about this.
When you create a snapshot of a database it needs to know about all of the data files that belong to the database. These data files are specified when the database is created (you can add more later but we won't concern ourselves with that), either by default or by specifying the names as part of the command.
For example, I have a test db with the name 'SHTest'. Looking at the files (via 'Properties' in SSMS) shows the Logical Name of the data file as 'SHTest'. The log file logical name is SHTest_Log but we don't care about the log for this exercise.
The snapshot command needs to know the filename 'SHTest', which is the logical name of the data file. There may be more than one and each data file needs to be specified.
There is a good example of this command inthe MSDN - please read http://technet.microsoft.com/en-us/library/ms175876(v=sql.90).aspx and come back with any further questions if needed.
November 4, 2013 at 5:54 am
Dear BrainDonor
thanks alot
i got it
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply