16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

966 Part IX: Maintaining a Server in Windows SharePoint Services<br />

Setup Steps<br />

At this point, you have two sites, OurNewSharePointSite <strong>and</strong> OurNewASPNETSite,<br />

up <strong>and</strong> running. For the first part of this example, we’re going to do the following:<br />

■ Verify the content database for the site.<br />

■ Use Windows SharePoint Services Site Administration to add a Web Part.<br />

■ Add some data to the Web Part.<br />

■ Locate the Web Part GUID.<br />

■ Use Visual Studio to create a new ASP.NET page.<br />

■ Code the DataList.<br />

■ Test the new page.<br />

■ Try it out: verifying the new entries.<br />

Verify the Content Database for the Site<br />

When using Web Parts outside of the Windows SharePoint Services environment, it<br />

is helpful to be able to locate information about it (the GUID <strong>and</strong> so on) that is<br />

stored in the content database for the site. For our example, we will use this database<br />

to check out information about the Web Part, so we need to locate the one<br />

created for OurNewSharePointSite.<br />

Note Knowing how to locate the correct content database for a site is also<br />

useful for working with sites that others have created—not everyone follows<br />

a convention.<br />

As mentioned previously in the creation of the OurNewSharePointSite site, the<br />

content database you selected should have a distinctive name. In our example, we<br />

named it Contoso1. If you opted instead to use the default content database (that is,<br />

you left the Use The Default Content Database option selected when you created<br />

the site), a new database would have been created using a default name of<br />

STS__.<br />

Once you have located the IIS instance number, open the SQL Server Enterprise<br />

Manager. (You do this by clicking Start, pointing to All Programs, selecting <strong>Microsoft</strong><br />

SQL Server, <strong>and</strong> clicking Enterprise Manager.) In SQL Server Enterprise Manager, click<br />

the plus sign (+) next to the SQL Servers Group <strong>and</strong> then click the plus sign (+) next<br />

to the Server Instance for Windows SharePoint Services, \SHAREPOINT, to<br />

exp<strong>and</strong> it. Click the Databases folder <strong>and</strong> find your database.<br />

To verify the site, click the plus sign (+) next to the database name, <strong>and</strong> then click<br />

Tables. The database tables will appear in the window pane on the right. Right-click the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!