Re: querying the content database
- From: "Todd Klindt [MVP]" <usenet@xxxxxxxxxx>
- Date: Thu, 5 Oct 2006 11:55:33 -0500
You need to do a join in your query to get the corresponding information
from the other table. I'm not going to write the whole query out, but
here's an example to get you pointed in the right direction. This query
matches up the CheckoutUserID column in Docs with tp_ID in the Userinfo
table:
select Docs.DirName, Docs.LeafName, Userinfo.tp_login from userinfo inner
join docs on docs.SiteID = userinfo.tp_SiteID and docs.CheckoutUserID =
userinfo.tp_ID
You'll need something like that for 6. For 7 by "team leader" do you mean
"site collection owner?" Team Leader is not a SharePoint attribute, so I'm
not sure what you're looking for.
tk
"Nancee" <Nancee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4975E4A2-47BE-4790-AB7B-84593770F5D0@xxxxxxxxxxxxxxxx
Todd,
Let me be clear on what I want,
Files /docs information required :
1. File Name
2. File Size
3. Version Count
4. File Location
5. Last modified date
6. Last modifying user name
7. Team Leader for the site
The attributes from 1 tp 5 are available in Docs table. The tough are 6
and
7. I know that UserData table has the lastmodifying userid, but to get the
last modifying username we need to refer to UserInfo table. How do I
relate
all the three tables to retrieve the above attributes in a single query.
Hope
you can help me out with this. Appreciate your reply.
Thanks,
Nan
--
Nancee
"Todd Klindt [MVP]" wrote:
Looks like I inadvertently lied to you, sorry about that. The Admin
Guide
doesn't have the database schema in it. The SDK does. Searching for
"sharepoint sdk" should bring it up. The schema is under Reference ->
Databases. The information you're looking for is in the Docs table of
the
Content databases.
tk
"Nancee" <Nancee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9B746473-910F-4A25-A8D2-D5346933E73B@xxxxxxxxxxxxxxxx
Hello Todd,
Thanks for your reply. I downloaded wss admin guide and searched the
pages
for content database table schema, I could not find any. What I want
from
the
content database is info related to file size, file name, last
modifying
user, version count, .........for the documents. I tried to query the
database but I dont get the right information. Hope this info can help
you
to
clarify my questions. Please I need this to be fixed pretty soon. I
tried
googling sharepoint pages, but of no result.
--
Nancee
"Todd Klindt [MVP]" wrote:
The database schema is laid out in the WSS Admin Guide. If you search
for
that exact phrase in your favorite Internet search engine you'll be
directed
to the download.
Tread carefully in the databases. Don't even think about changing
anything
in there. Microsoft hates that.
tk
"Nancee" <Nancee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1304B475-C99F-43BD-AF0D-7C4C0D2AC410@xxxxxxxxxxxxxxxx
Can anyone please share the schema of the content database table in
sharepoint? I am trying to fetch some parameters like last modifying
user,
team leader for the site,..... ? Can anyone help me with this?
Appreciate
your inputs
--
Nancee
.
- References:
- Re: querying the content database
- From: Todd Klindt [MVP]
- Re: querying the content database
- From: Todd Klindt [MVP]
- Re: querying the content database
- From: Nancee
- Re: querying the content database
- Prev by Date: Re: Problems with Database Results ASP page, could it be WSS related?
- Next by Date: Re: Linking to an Exchange Public Folder
- Previous by thread: Re: querying the content database
- Next by thread: Re: Two MSDE instances on one server
- Index(es):
Relevant Pages
|