重新启动后SQL Server 2008 Express R2还原(并失败)

几乎每次我重新启动承载SQL Server 2008 R2 express服务器的计算机时,数据库都会经历恢复过程。 大多数情况下,数据库将停滞在恢复过程中。

在Windows事件日志中发现此错误: The SQL Server (__NAMEHERE__) service terminated unexpectedly. It has done this 1 time(s). The SQL Server (__NAMEHERE__) service terminated unexpectedly. It has done this 1 time(s).

这是在SQL日志中find的:

2011-12-09 10:12:51.16 Server SQL Server is terminating because of a system shutdown. This is an informational message only. No user action is required. 2011-12-09 10:13:18.86 spid13s Service Broker manager has shut down. 2011-12-09 10:13:18.86 spid13s Error: 17054, Severity: 16, State: 1. 2011-12-09 10:13:18.86 spid13s The current event was not reported to the Windows Events log. Operating system error = (null). You may need to clear the Windows Events log if it is full.

任何明显的原因,为什么我不能重新启动系统没有数据库需要通过恢复。

你确定这是一个恢复过程? 当SQL Server启动时,所有的数据库都会经历一个名为“恢复”的进程 – 这确保所有提交的事务都可以正常工作,而那些没有提交的事务将被回滚。 (当数据库恢复时,它也会恢复)

那些日志只是告诉我,由于系统closures(重新启动?)SQL Server的服务停止。 当您手动启动SQL Server服务时会发生什么? 它运行在域Windows帐户或本地系统帐户下吗?

原来问题是由于Service Broker的问题,数据库内存不足。 重新启动服务之后,代理程序使用的所有内存仍在重新加载,并使可用内存达到最大。 我不知道内存消耗的原因,但它解决了我在这里遇到的问题。 数据库在快速版本中只是用尽了内存。