مشكلة بسترجاع قاعدة البيانات
انا عندي قاعدة بينات اخذت منها باكاب و بعملو استرجاع عشان اعمل وحدة ثانية
انا عندي موقع يستخدم هذي القاعدة فبعمل موقع ثاني يستخدم نفس نوع القاعدة بس بعملها بقاعدو منفصله
لما استخدمت امر الاسترجاع هذا
RESTORE DATABASE kassabdb
FROM DISK = 'C:\bookings.bak'
WITH RECOVERY;
جالي هذا الخطاء
Msg 1834, Level 16, State 1, Line 1
The file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Booking.mdf' cannot be overwritten. It is being used by database 'Booking'.
Msg 3156, Level 16, State 4, Line 1
File 'test1' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Booking.mdf'. Use WITH MOVE to identify a valid location for the file.
Msg 1834, Level 16, State 1, Line 1
The file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Booking_1.ldf' cannot be overwritten. It is being used by database 'Booking'.
Msg 3156, Level 16, State 4, Line 1
File 'test1_log' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Booking_1.ldf'. Use WITH MOVE to identify a valid location for the file.
Msg 3119, Level 16, State 1, Line 1
Problems were identified while planning for the RESTORE statement. Previous messages provide details.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
ارجو المساعدة
