eo
MIS
- Apr 3, 2003
- 809
Hi
SQL server 2000.
I have a DB which is 18,671MB in size with only 445MB free space. I am now deleting records from this DB as we only need 45 days worth of data. But I am assuming this does not automatically free up space!! Do I need to perform DBCC SHRINKDATABASE to physically free up DB space and to reduce the size oif the log files??
The syntax for DBCC SHRINKDATABASE is
DBCC SHRINKDATABASE
( database_name [ , target_percent ]
[ , { NOTRUNCATE | TRUNCATEONLY } ]
)
...where target_percent "Is the desired percentage of free space left in the database file after the database has been shrunk"
How do I know what this percentage should be as I have simply deleted records, I do not know how much space has potentially been freed?
EO
Hertfordshire, England
SQL server 2000.
I have a DB which is 18,671MB in size with only 445MB free space. I am now deleting records from this DB as we only need 45 days worth of data. But I am assuming this does not automatically free up space!! Do I need to perform DBCC SHRINKDATABASE to physically free up DB space and to reduce the size oif the log files??
The syntax for DBCC SHRINKDATABASE is
DBCC SHRINKDATABASE
( database_name [ , target_percent ]
[ , { NOTRUNCATE | TRUNCATEONLY } ]
)
...where target_percent "Is the desired percentage of free space left in the database file after the database has been shrunk"
How do I know what this percentage should be as I have simply deleted records, I do not know how much space has potentially been freed?
EO
Hertfordshire, England