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'.
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'.