如何创建SQL Server数据库文件的多个文件来管理磁盘空间 [英] How to create multiple files of SQL Server database file to manage disk space

查看:248
本文介绍了如何创建SQL Server数据库文件的多个文件来管理磁盘空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在D盘上有大约500GB的磁盘空间。我在D Drive上创建了我的数据库文件。经过几年的交易,磁盘空间几乎已满(剩余大约25 MB的磁盘空间)。



我在E Drive上剩余大约300GB的磁盘空间。我可以在E Drive上使用现有数据库上的磁盘空间,这样我就可以将数据库扩展到800GB(D盘上500 GB,E盘上300 GB)。



任何帮助都会非常明显。



谢谢。

Hi All,
I have around 500GB disk space on D drive. I created my database file on D Drive. After few years of transactions, the disk space is almost full (around 25 MB disk space remaining).

I have around 300GB disk space remaining on E Drive. Can I use disk space available on E Drive for the existing database which will enable me to grow my database up to 800GB (500 GB on D Drive & 300 GB on E Drive).

Any help would be really appreciable.

Thanks.

推荐答案

开始做之前它,请尝试缩小数据库 [ ^ ]和汇总转换日志 [ ^ ]。

之后,检查SQL数据库文件占用的空间。







看看这里:

使用文件和文件组管理数据库增长 [ ^ ]

如何:启动创建分区向导(SQL Server Management Studio) [ ^ ]



By方式:请阅读: http://stackoverflow.com/questions/5613898/storing-images -in-sql-server [ ^ 。有一个名为MS的文档的引用:要Blob或不要Blob 。我保证:非常有趣!

[/ EDIT]
Before you start doing it, please try to shrink database[^] and shrink transation log[^].
After that, check the space occupied by SQL database file.



Have a look here:
Using Files and Filegroups to Manage Database Growth[^]
How to: Start the Create Partition Wizard (SQL Server Management Studio)[^]

By The Way: Please read this: http://stackoverflow.com/questions/5613898/storing-images-in-sql-server[^]. There is a reference to MS document called: "To Blob Or Not To Blob". I guarantee you: it's very interesting!
[/EDIT]


这篇关于如何创建SQL Server数据库文件的多个文件来管理磁盘空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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