List of solutions
Moderator: SourceGear
-
- Posts: 24
- Joined: Tue Aug 01, 2006 2:18 pm
- Contact:
List of solutions
Can someone provide me with a SQL statement to retrieve a list of all the solutions in SourceGear vault?
-
- Posts: 24
- Joined: Tue Aug 01, 2006 2:18 pm
- Contact:
There is no real tree on the Vault server so a query is not really practical.
The easiest way to get this would be through the Vault client. Have you tried a filename search within the Vault client for *.sln, *.vbproj, or *.csproj? You can find this functionality on the Vault GUI Client's Search tab.
The easiest way to get this would be through the Vault client. Have you tried a filename search within the Vault client for *.sln, *.vbproj, or *.csproj? You can find this functionality on the Vault GUI Client's Search tab.
Jeff Clausius
SourceGear
SourceGear
-
- Posts: 24
- Joined: Tue Aug 01, 2006 2:18 pm
- Contact:
That works, however I have to go into each repository individually and then tally the results myself.
Slightly off topic, I can find everything checked out across all repositories by using the following:
SELECT * FROM sgvault.dbo.tblcheckoutlistitems WHERE colistid In
(SELECT currentcolistid FROM sgvault.dbo.tblrepositories)
I thought maybe someone might be able to point me in the direction of finding all files of a type across all repositories.
Slightly off topic, I can find everything checked out across all repositories by using the following:
SELECT * FROM sgvault.dbo.tblcheckoutlistitems WHERE colistid In
(SELECT currentcolistid FROM sgvault.dbo.tblrepositories)
I thought maybe someone might be able to point me in the direction of finding all files of a type across all repositories.
I didn't think about the checkout list.
This is not really practical, and would be more of a pain than searching from the client, but if you checked out all project files across all repositories, and then query the checkout list table that would be one way to do it from a SQL point of view.
This is not really practical, and would be more of a pain than searching from the client, but if you checked out all project files across all repositories, and then query the checkout list table that would be one way to do it from a SQL point of view.
Jeff Clausius
SourceGear
SourceGear
Another option:
You could use a cursor that retrieves every repository's id. Then using the repid and the SQL code from this post -
http://support.sourcegear.com/viewtopic ... c&start=30
build a tree and place it into a temp table. Then from the temp table query for the files you are looking for.
You could use a cursor that retrieves every repository's id. Then using the repid and the SQL code from this post -
http://support.sourcegear.com/viewtopic ... c&start=30
build a tree and place it into a temp table. Then from the temp table query for the files you are looking for.
Jeff Clausius
SourceGear
SourceGear