Advertisement

10.12.2008 at 09:48PM PDT, ID: 23808572 | Points: 500
[x]
Attachment Details

DBCC SHRINKFILE Always Fails

Asked by novaworks in MS SQL Server

Tags: , ,

I am trying to free up HD space on our server. For many years, we never instituted an archiving strategy and have finally gotten around to do so. I have cut our db down from approximately 72 million rows (42GB) to approximately 27 million rows (31GB). However, I am having trouble re-capturing HD space that I know is not being used in tables. No issues with the transaction log, I'm keeping that in check as I delete records.

Here are my questions:

1) Every time I run DBCC SHRINKFILE (data file only) it tells me "Transaction (Process ID 62) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. [SQLSTATE 40001] (Error 1205).  The step failed."

2) One table in particular has 177MB worth of data but has an index of 15GB. I assume that I either need to reindex this table (from which I have deleted millions of rows) or I have a poor index design (or both). Even with the optimization jobs, it is not giving me space back.

3) Is there anything else that I should be doing as a normal course of action (both now and on-going)?
Start Free Trial
 
Loading Advertisement...
 
[+][-]10.12.2008 at 10:17PM PDT, ID: 22700268

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 08:01AM PDT, ID: 22702989

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 08:25AM PDT, ID: 22703215

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.13.2008 at 12:43PM PDT, ID: 22705664

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 08:55AM PDT, ID: 22732609

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 09:42AM PDT, ID: 22733060

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 01:18PM PDT, ID: 22735329

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 04:04PM PDT, ID: 22736600

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 - Hierarchy / EE_QW_2_20070628