Hi,
I have read many posts on this subject including thread183-430515 but am still confused. (new to SQL Admin) using SQL 2000.
We have a transaction log that is 20G, leaving only 3.4g free space on the server. the data file is about 225MB and the Index file is about 245MB.
We have done a database and transaction log backup, then ran the dbcc shrinkfile command. It failed with the "All logical files are in use" message.
In one of the posts I thought I read that we 'might' need to stop access to the database prior to running the shrinkfile command. Do we need to Detach the database prior to running the command?
Also, I thought I saw somewhere that doing a backup would cause the transaction to auto-shrink so it would remain a realistic size.
Please help me sort through the exact steps we need to do and the correct order to get the trans log size down and keep it small.
thank you!
I have read many posts on this subject including thread183-430515 but am still confused. (new to SQL Admin) using SQL 2000.
We have a transaction log that is 20G, leaving only 3.4g free space on the server. the data file is about 225MB and the Index file is about 245MB.
We have done a database and transaction log backup, then ran the dbcc shrinkfile command. It failed with the "All logical files are in use" message.
In one of the posts I thought I read that we 'might' need to stop access to the database prior to running the shrinkfile command. Do we need to Detach the database prior to running the command?
Also, I thought I saw somewhere that doing a backup would cause the transaction to auto-shrink so it would remain a realistic size.
Please help me sort through the exact steps we need to do and the correct order to get the trans log size down and keep it small.
thank you!