PDA

View Full Version : خطا در ری استور



moh899
جمعه 28 تیر 1392, 22:23 عصر
سلام از کد زیر برای restore استفاده می کنم
use master ALTER DATABASE [newdent] SET SINGLE_USER WITH ROLLBACK IMMEDIATE RESTORE DATABASE [newdent] FROM DISK = '" + filename + "' ALTER DATABASE [newdent] SET MULTI_USER

اول خطا نمی داد ولی حالا خطای زیر رو میده
The backup set holds a backup of a database other than the existing 'newdent' database.
RESTORE DATABASE is terminating abnormally.
Changed database context to 'master'.

sevensysdev
یک شنبه 30 تیر 1392, 12:47 عصر
use master
ALTER DATABASE [newdent] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
ALTER DATABASE [newdent] SET MULTI_USER
use master
RESTORE DATABASE [newdent] FROM DISK = '" + filename + "'
ALTER DATABASE [newdent] SET MULTI_USER--

moh899
دوشنبه 31 تیر 1392, 00:28 صبح
آقا متوجه نشدم یه بار کامل می گی؟؟؟
ممنون