Our SQL Server database is growing out of control. It is up to 20Gb and we've run out of free disk space.
From what I can tell, I think the problem started when a user checked out ALL the files in a certain subfolder last week- I think it is over 1000 files. I can't do anything on the server because it is out of disk space. I think we can get a second drive on the server and move the mdf/ldf files for vault over to it, but does anyone have any suggestions for what to do after that? My thought was to undo check out on all those files, and then delete/obliterate that entire folder to get rid of all that data.
Any thoughts? Vault is useless to us right now...
We are running version 3.0.7. I know that is an ancient version, but we really haven't had time to upgrade.
Database growing out of control
Moderator: SourceGear
Database growing out of control
Owen Manske, Software Configuration Manager
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
Think I found the problem
I thought this problem was because of a large number of checkouts. Finding an old correspondence with Linda B. I ran this to find out how many there were:
select a.repid, b.colistid, count(*) as mycount from sgvault.dbo.tblcheckoutlists a, sgvault.dbo.tblcheckoutlistitems b where a.colistid = b.colistid and a.colistid IN (select MAX(colistid) from sgvault.dbo.tblcheckoutlists group by repid) group by a.repid, b.colistid order by a.repid
The return value was 88682. My guess is that's too many.
I am guessing there is a way to fix this in the database, but I don't know what that is.
Any help would be greatly appreciated.
select a.repid, b.colistid, count(*) as mycount from sgvault.dbo.tblcheckoutlists a, sgvault.dbo.tblcheckoutlistitems b where a.colistid = b.colistid and a.colistid IN (select MAX(colistid) from sgvault.dbo.tblcheckoutlists group by repid) group by a.repid, b.colistid order by a.repid
The return value was 88682. My guess is that's too many.
I am guessing there is a way to fix this in the database, but I don't know what that is.
Any help would be greatly appreciated.
Owen Manske, Software Configuration Manager
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
Thanks Linda.
I checked the size of the tblcheckoutlistitems about 2 hours ago and it had 19,647,787 rows.
I checked just now and it has 20,091,296 rows.
I wonder if it will ever stop growing....
I checked the size of the tblcheckoutlistitems about 2 hours ago and it had 19,647,787 rows.
I checked just now and it has 20,091,296 rows.
I wonder if it will ever stop growing....
Owen Manske, Software Configuration Manager
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
Linda,
Thanks so much for the help. Your scripts did help us fix our problem.
Thanks again,
Owen
Thanks so much for the help. Your scripts did help us fix our problem.
Thanks again,
Owen
Owen Manske, Software Configuration Manager
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com
P: (414) 431-8571 C: (414) 331-6848
E: owen.manske@passporthealth.com
Passport Health Communications www.passporthealth.com