恢复问题中的数据库

时间:2013-08-30 05:01:45

标签: sql sql-server

我有一台Rackspace可以服务器运行Widows Server 2012和一个MS SQL Server 2012网络版实例。

Ealier今天在该服务器上使用数据库的网站报告了数据库中特定表的SQL查询超时。在网络服务器或SQL服务器上没有任何异常/任何变化。

我重新启动MS SQL Server以查看是否可以解决问题。重新启动后,我打开了Management Studio并打开了数据库树以查看表并得出错误'数据库xxxx无法访问。 (ObjectExplorer)”。

然后我尝试使数据库脱机并得到第一个错误:

TITLE: Microsoft SQL Server Management Studio

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

Cannot show requested dialog.

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

Cannot show requested dialog. (SqlMgmt)

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

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

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

Database 'xxxx' is being recovered. Waiting until recovery is finished. (Microsoft SQL Server, Error: 922)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3128&EvtSrc=MSSQLServer&EvtID=922&LinkId=20476

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

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

然后我尝试分离数据库并得到第二个错误:

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

Detach database failed for Server 'ORIGIN1'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Detach+database+Server&LinkId=20476

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

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

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

Cannot detach the database 'xxxxx' because it is currently in use. (Microsoft SQL Server, Error: 3703)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3128&EvtSrc=MSSQLServer&EvtID=3703&LinkId=20476

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

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

数据库大小为1.8GB。

有什么想法吗?

0 个答案:

没有答案