SQL query for file and folder count?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
tjruska
Posts: 59
Joined: Tue May 13, 2008 7:35 am
Location: Milwaukee, WI
Contact:

SQL query for file and folder count?

Post by tjruska » Tue Jun 23, 2009 9:03 am

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

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SQL query for file and folder count?

Post by Beth » Tue Jun 23, 2009 10:15 am

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.
Beth Kieler
SourceGear Technical Support

tjruska
Posts: 59
Joined: Tue May 13, 2008 7:35 am
Location: Milwaukee, WI
Contact:

Re: SQL query for file and folder count?

Post by tjruska » Tue Jun 23, 2009 12:31 pm

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

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SQL query for file and folder count?

Post by Beth » Tue Jun 23, 2009 2:38 pm

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

tjruska
Posts: 59
Joined: Tue May 13, 2008 7:35 am
Location: Milwaukee, WI
Contact:

Re: SQL query for file and folder count?

Post by tjruska » Wed Jun 24, 2009 6:47 am

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

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SQL query for file and folder count?

Post by Beth » Wed Jun 24, 2009 10:31 am

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

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SQL query for file and folder count?

Post by Beth » Tue Jul 07, 2009 7:54 am

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

avaishnav
Posts: 2
Joined: Wed Nov 25, 2015 1:34 pm

Re: SQL query for file and folder count?

Post by avaishnav » Wed Nov 25, 2015 2:02 pm

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

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SQL query for file and folder count?

Post by Beth » Wed Nov 25, 2015 5:05 pm

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.
Beth Kieler
SourceGear Technical Support

avaishnav
Posts: 2
Joined: Wed Nov 25, 2015 1:34 pm

Re: SQL query for file and folder count?

Post by avaishnav » Mon Nov 30, 2015 3:37 pm

Thanks for reply! I sent you the email to sourcegear support.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SQL query for file and folder count?

Post by Beth » Mon Nov 30, 2015 4:13 pm

Thanks. Email received and responded.

HS: 235914
Beth Kieler
SourceGear Technical Support

Post Reply