Wednesday, August 19, 2009

About MOSS 2007 Database Administration

Where the data lives??

There are two db's which are associated here:

1.Configuration Database

2.Content Database

Configuration Database:MOSS creates the configuration database during the installation itself.

The configDB servers as a data store for the following:


  1. Sites

  2. Databases

  3. Servers

  4. Virtual Servers

Content Database: Content DB serves as a central repository for storing all the contents specific to a site.It stores the data related to the Site Collection such as


site details

site structure

User Content

Files

Security Information

Used in WSS 3.0

Avoid enumerating through the SPListItemCollection object as each step will invoke a sparate call to a content database.
Code Snippet:
string siteURL="http://chem.agilent.com";
using (SPSite site=new SPSite(siteURL);
{
using(SPWeb web=site.OpenWeb());
{
SPList tasksList=web.Lists["Tasks"];
DataTable dt=tasksList.Items.GetDataTable();
foreach(DataRow dr in dt.Rows)
{
//Code
}
}

Welcome

Welcome you all in my blog where in I will share my sharepoint knowledge....So lets collaborate together to learn something new :)-