tempdb的可用空间越来越小, 怎么办?

algo 2000-01-27 03:44:00
我用SQL Server 6.5 + Visual Basic 5.0开发的系统,同时带50个左右的工作站, tempdb的可用空间越来越小, 以至整个系统崩溃, 怎么回事? 指教.
...全文
193 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
july 2000-01-28
  • 打赏
  • 举报
回复
chxfeng 和 929 的回答已经比较全面,这里给你补充说明的是,你在程序中调用cursor 和 临时表是一定记得在最后将空间释放,命令应当是deallcoate,如果有错,请查以下帮助文件,我很久未用,可能记得不清了
929 2000-01-28
  • 打赏
  • 举报
回复
TEMPDB是SQL SERVER用来进行数据库中数据计算,排序用的临时表。当应用程序中进行了大量的表间计算,表中数据排序时,会占用大量TEMPDB空间。要扩大TEMPDB,可用SQL ENTERPRISE新建一个设备,然后将TEMPDB进行扩大。另外在计算过程,比如说在存储过程中引用临时表,一般说会在过程结束后自动释放临时表空间。如果因为某些原因,未能释放,可重新启动SQL SERVER试一下。
chxfeng 2000-01-27
  • 打赏
  • 举报
回复
may be you should set on property of the tempdb , truncate log on checkpoint .

the other method is increate the size of tempdb .
i don't know the program of your system , may be some dead lock occured in your system , when the system is running , you can check the lock status of system .

the other reason may be you use some temp table then leave them in tempdb after you finish one work , you should check you code to prevent this type of bug.

sorry to reply with english , my hinese input system have some bug now .

34,575

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧