SQL query for file and folder count?
Moderator: SourceGear
SQL query for file and folder count?
I need to do some research into size of repositories and artifact counts and was wondering if there is a query to do this? I know 4.1.4 has this in the repository view via the Admin page.
I am on version 3.5.3 currently with plans to go to 4.1.4 in the fall.
Thanks, Tom
I am on version 3.5.3 currently with plans to go to 4.1.4 in the fall.
Thanks, Tom
Re: SQL query for file and folder count?
By artifacts, do you mean nodes, or number of files, or something else?
Is there a particular reason you need that information outside of the admin web page? If there are any problems going on, we'd like to assist with that.
If you are upgrading in the fall, you will probably want to go to Vault 5.0 or the most recent version after 5.0. It should be out before then.
Is there a particular reason you need that information outside of the admin web page? If there are any problems going on, we'd like to assist with that.
If you are upgrading in the fall, you will probably want to go to Vault 5.0 or the most recent version after 5.0. It should be out before then.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: SQL query for file and folder count?
Just want to get the same numbers as what the 4.1.4 version gives me now on the older version. Need it for analysis of a project to convert all .Net 1.1 apps to the latest, etc. No issues, just need it to do an estimate for the PM's. They want to know how many repositories, files, folders, etc. I just thought there was a quick and dirty query I could run to get this information without having to wait.
As to the 5.0 version, I usually stay away from x.0 releases of any software.
Tom
As to the 5.0 version, I usually stay away from x.0 releases of any software.
Tom
Re: SQL query for file and folder count?
That same information is available in the Vault 3.5.3 admin tool in the repository properties. Would that provide you with what you need?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: SQL query for file and folder count?
I guess it would, but this will be cumbersome as we have over 100 repositories. Maybe I can get an intern to do this tedious task.
Was hoping there was some query I could run against the DB to give me the same information.
Thanks, Tom
Was hoping there was some query I could run against the DB to give me the same information.
Thanks, Tom
Re: SQL query for file and folder count?
I think I have something that will give you what you need. Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: SQL query for file and folder count?
Just a quick follow-up. I have emailed a script on June 25th and again today. If you aren't receiving those, please let me know.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: SQL query for file and folder count?
Hi,
I am doing similar analysis to break down huge repository. Admin page only shows total files in repository. Folder's properties only show file count in the folder and doesn't count files in all sub-folders. I need to know file count of certain high level folders that includes files of its all sub-folders.
Can this information be found using SQL query OR any other way? Can I please have SQL query that return file count including files in sub-folder for any given folder?
--Amit
I am doing similar analysis to break down huge repository. Admin page only shows total files in repository. Folder's properties only show file count in the folder and doesn't count files in all sub-folders. I need to know file count of certain high level folders that includes files of its all sub-folders.
Can this information be found using SQL query OR any other way? Can I please have SQL query that return file count including files in sub-folder for any given folder?
--Amit
Re: SQL query for file and folder count?
Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
We'll be able to go over this on Monday.
We'll be able to go over this on Monday.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: SQL query for file and folder count?
Thanks for reply! I sent you the email to sourcegear support.
Re: SQL query for file and folder count?
Thanks. Email received and responded.
HS: 235914
HS: 235914
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support