确保有足够的 TempDB 空间

适用于:Access 2013、Office 2013

如果在处理需要处理 Microsoft SQL Server 6.5 空间的 Recordset 对象时发生错误,则可能需要增加 TempDB 的大小。 (某些查询需要临时处理空间;例如,具有 ORDER BY 子句的查询需要 某种 Recordset,这需要一些临时空格。)

重要

[!重要信息] 请在执行操作之前阅读该步骤,因为设备一旦展开就难以折叠。

注意

[!注释] 在默认情况下,在 Microsoft SQL Server 7.0 和更高版本中,TempDB 会设置为根据需要自动增加大小。 因此,下面的过程可能仅在运行版本低于 7.0 的 SQL Server 的服务器上是必需的。

增加 SQL Server 6.5 上的 TempDB 空间

  1. 启动 Microsoft SQL Server 企业管理器,打开"服务器"树,然后打开"数据库设备"树。

  2. Select a (physical) device to expand, such as Master, and double-click the device to open the Edit Database Device dialog box. This dialog box shows how much space the current databases are using.

  3. In the Size box, increase the device to the desired amount (for example, 50 megabytes (MB) of hard disk space).

  4. Click Change Now to increase the amount of space to which the (logical) TempDB can expand.

  5. Open the Databases tree on the server, and then double-click TempDB to open the Edit Database dialog box. “数据库”选项卡列出了当前分配给 TempDB 的空间大小(“数据大小”)。 By default, this is 2 MB.

  6. Under the Size group, click Expand. The graphs show the available and allocated space on each of the physical devices. The bars in maroon color represent available space.

  7. Select a Log Device, such as Master, to display the available size in the Size (MB) box.

  8. Click Expand Now to allocate that space to the TempDB database. The Edit Database dialog box displays the new allocated size for TempDB.

有关本主题的详细信息,请在 Microsoft SQL Server 企业管理器帮助文件中搜索"扩展数据库对话框"。