0

I'm currently trying a migration of my database from discountasp.net to arvixe.com, mainly to check if I can get the same level of quality for a better price. I made a backup of my database at discountasp through their control panel, uploaded it via ftp to the new host and used their restore tool. I then open SQL Server Management Studio, open my database node and the Tables node. I then get the following error and I can't see anything in the Tables node same happens for other nodes too, like Security/Users)

Failed to retrieve data for this request (Microsoft.SqlServer.Management.Sdk.Sfc) An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)

I was always able to backup/restore DBs from/to discountasp and my local dev machine.

Is it an error very specific to the tested host Arvixe or is it an error that someone is able to explain? No need to say that before the restore, at Arvixe, I was able to create a database, tables, look inside and play with it. This is really the restore operation that screws up everything.

PS: of course I have an open ticket with Arvixe too but so far they are not able to help...

Update: this issue had no explanation. Under Arvixe CP, I created another user, gave it access to the database and it worked. I (and Arvixe) have no idea why the first user had a change in its permissions to prevent me accessing the restored DB.

4

1 回答 1

0

没有用户映射到恢复的数据库,您需要进行简单的选择。(自定义)用户不会通过备份/恢复进行转移。

我不知道您是否可以访问安全节点,但您应该将映射添加到您的用户帐户。

此 t-sql 脚本将 YourUserName 用户作为 db_owner 添加到 YourDatabaseName

USE [YourDatabaseName]
GO
EXEC sp_addrolemember N'db_owner', N'YourUserName'
GO

成功!

于 2010-11-28T15:40:30.677 回答