-
Blog Networks
-
Archives
- February 2010 (5)
- November 2009 (4)
- October 2009 (3)
- September 2009 (2)
- August 2009 (2)
- July 2009 (3)
- April 2009 (4)
- March 2009 (11)
- February 2009 (1)
- November 2008 (1)
- June 2008 (1)
- April 2008 (1)
- March 2008 (3)
- September 2007 (1)
- August 2007 (1)
- July 2007 (2)
-
Recent Posts
CLUSTER MAP
Tag Cloud
70-541 All Files Attachment Certification Configuration ContentType Copy CopyInToItems Copy WebService CreateWorkSpace Database Database Categories Download Download Document Error Excel Calculation Services Excel Services Expression Blend 3 Extensions Feature File GetItem Hidden List InternalName jQuery Library Links List ListIte Lists List URL MOSS MOSS 2007 Navigation SharePoint SharePoint-2010 SharePoint Database Silverlight SP2010 New Features SPQuery Sql Query Tips Series Upload User Information List WebService
SharePoint Database SQL Query Tips1
Today onwards on daily basis, I decided to post the Sql Query to access the SharePoint Databases. To know more about the databases in Sharepoint , check my SharePoint Databases Post.
To retrieve all lists from the database, use the following query,
select AllLists.tp_Title as ‘List Title’,webs.Title as ‘Web Title’
from dbo.AllLists as AllLists
inner join dbo.Webs as webs
on webs.Id=AllLists.tp_WebId
order by webs.Title
dbo.AllLists Table contains all the lists available in WebApplication Level *
dbo.Webs Table Contains all the webs or sites available in WebApplication Level *

Sql Query Result - Returns All Lists with Site
*If the Database configured for SiteCollection, then the table only contains the datas for SiteCollection Level.
- MOSS
- SharePoint
Filed Under
No comments yet.
RSS feed for comments on this post. TrackBack URL
