on 08-17-2014 10:26 AM
Hi ,
We are using SAP with Mssql2005 on Windows 2008r2.server.
One week back we provided 400 GB space to My database files (for each 100GB), But right now we don't want that much space for My system.We are planing to use that extra space for another system.
I want to know below points.
1)How to reduce my database free space from Mssql 2005 management studio.
2)What is the Procedure.
3)Is it possible to reduce the Database free size once added to SQL Database files.
Please suggest the procedure, its urgent requirement.
In your case, just shrink the Files. The SQL Server will reorganize the pages to the beginning of the files.
But i also recommend you to upgrade du SQL Server 2008 R2 / 2012 and compress the DB!
We started with ~1TB (ERP 4.7 Non Unicode 2005), migrated to SQL Server 2008 R2 ECC 6 EHP 5 and grow up to 1,9 TB. With this size we started to compress the whole DB (first ROW then PAGE).
We ended up with 400GB! As a result of this, the DB response rimes reduce significantly because
1. The storage do not have to read / write as many blocks as before.
2. The SQL Server data cache can now hold much more data than before. (before 1,9 TB vs 190GB Cache, after 400 GB vs 190GB cache. After a 3 day bufferwarmup we do not have longer any cachehitratio drops below 99%)
3. CPU usage because of page compression only goes up ~3%.
Use ABAP Report "msscompress" after the upgrade to compress the tables. (Keep TA Log in mind!!)
SQL Server 2008 r2 has other benefits like online index rebuild or SQL Server Mirroring.
Regards
Manuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rao
1)How to reduce my database free space from Mssql 2005 management studio.
2)What is the Procedure.
Open the MS Sql 2005 management studio - select the Server Database (SID) - right click - go to Tasks - select shrink - select file check the free space in database files & log file. before starting the shrink better you can take the full database backup into local disk or tape
3)Is it possible to reduce the Database free size once added to SQL Database files.
You can create another one more partition to move any one of the database file. kindly refer the SAP Note 363018 - File management for SQL Server
BR
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rao
1. You can perform the Database shrink. During this process keep an eye on transaction log & do it during off peak time. Just go through the Microsoft blog Shrink a File
2. If your are migrating the database to MS Sql 2008 R2 you can get the database compression feature it may reduce your disk space more than 40%,
Regards
Sriram
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.