The VSTeamSCC database is not intended (or permissioned) to be queried directly.
Tell me a little bit more about what you're trying to accomplish and I'll see how hard it would be to get the required data exported to the warehouse.
Do you want code checked out in any (at least one) workspace or a specific workspace? (or both)
In one or more workspaces for a particular user?
Should items in shelvesets be considered checked out?
Checked out against the latest version or just checked out? (As in, if there's been a checkin to the item, does the clock restart?)
I'm not actually 100% sure that the time the file was checked out is recorded - I'll find that out first.
I do hope that check-out/in times are recorded in VSTF.
Given that shelving is intended to (among other things) allow code to be saved but not checked in, I'm still not sure how you'd want to account for files that aren't checked out but are in shelvesets.
I'll find out whether we record checkout time or not (we definitely record checkin time), and whether we can get this data exported to the warehouse or not if so. Stay tuned...
Buck
I'm sorry - does this mean run this command from the (VS 2005) command prompt? "h" is not a valid command, nor is "status".
This is exactly what I was looking for, but how do you run it? (I'm running VS 2005 Team Developer)
Thanks,
John