无法检索此请求的数据。 (Microsoft.SqlServer.Management.Sdk.Sfc) [英] Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

查看:168
本文介绍了无法检索此请求的数据。 (Microsoft.SqlServer.Management.Sdk.Sfc)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

附加数据库时出错。

我使用的是SQL Server 2008.在系统格式之后,安装了sql 2008.

然后我尝试附加以前使用的然后得到一个错误:



而且我也无法重命名或移动数据库文件。然后显示---验证文件当前正在使用





标题:Microsoft SQL Server管理工作室

------------------------------



无法检索此请求的数据。 (Microsoft.SqlServer.Management.Sdk.Sfc)



如需帮助,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476



------------------------------

附加信息:



执行Transact-SQL语句或批处理时发生异常。 (Microsoft.SqlServer.ConnectionInfo)



--------------------------- ---



CREATE FILE在尝试打开或创建物理文件时遇到操作系统错误5(访问被拒绝。)'D: \\DB\\DBFile_Data.MDF'。 (Microsoft SQL Server,错误:5123)



如需帮助,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600& EvtSrc = MSSQLServer& EvtID = 5123& LinkId = 20476



------------------- -----------

按钮:



OK

---- --------------------------

I got an error when attach a database.
I am used SQL Server 2008. After system format ,installed sql 2008.
Then I try to attach previously used database.Then got an error as :

And also I can't rename or move database file . Then shows ---"verify file is currently use"


TITLE: Microsoft SQL Server Management Studio
------------------------------

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'D:\\DB\\DBFile_Data.MDF'. (Microsoft SQL Server, Error: 5123)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=5123&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

推荐答案

你备份了mdf& ldf这两个文件?

你是否有早期版本数据库的bakup文件.bak。



之前我也遇到过问题从早期版本附加.mdf文件,很快我就使用了bak文件并完成了。
Did you backup the mdf & ldf both files?
and do you have the bakup file .bak for your database from earlier version.

previously I too faced issue while attaching the .mdf file from earlier version, and soon I used the bak file and it was done.


解决方案是您必须使用以前的SQL版本制作备份文件.bak然后将其还原到SQL Server 2008,将帮助您解决此问题。
The solution is you have to make backup file ".bak" with your previous SQL version and then restoring it to SQL server 2008, there will help you to fix this problem.


这篇关于无法检索此请求的数据。 (Microsoft.SqlServer.Management.Sdk.Sfc)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆