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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

By default, Windows SharePoint Services databases use Windows Authentication<br />

for security reasons. Therefore, you should log in to the system as WSSASPTester to<br />

open the SQL Server database, although you can do this from any account that has<br />

access to the Windows SharePoint Services database we created (for example,<br />

Administrator, sa, <strong>and</strong> so on).<br />

1. Open the SQL Server Query Analyzer by clicking Start, pointing to All Programs,<br />

selecting <strong>Microsoft</strong> SQL Server, <strong>and</strong> clicking Query Analyzer.<br />

2. In the Connect To SQL Server dialog box, enter your server instance name. (By<br />

default, for Windows SharePoint Services this is \SHAREPOINT.) In<br />

our example, our server is S2003E, so the server name would be entered as:<br />

s2003e\SHAREPOINT.<br />

3. If you are using WSSASPTester or Administrator, select Windows Authentication.<br />

If you are using a SQL Server account, such as sa, you need to click SQL<br />

Server authentication <strong>and</strong> enter the Login name <strong>and</strong> password.<br />

4. Click OK to log in to the database, <strong>and</strong> open Query Analyzer.<br />

5. On the very top menu bar, there is a drop-down list that indicates the database<br />

you are currently accessing. If you logged in as WSSASPTester, this should<br />

already be pointing to Contoso1. If anything else is shown, such as “master,”<br />

use the drop-down list to locate <strong>and</strong> select Contoso1. In the Query window,<br />

enter the following select statement:<br />

SELECT tp_ID FROM Lists WHERE tp_Title LIKE '%Problem/Solutions%'<br />

Entering this information should return a single row in the Query Results<br />

window. The GUID for the list is the column named tp_ID. (Note that the<br />

GUID does not have curly braces in the database.)<br />

Note If you do not find the row using the query just shown, the list might<br />

have used the Default Title, General Discussions. If this is the case, substitute<br />

General Discussions for Problem/Solutions in the select statement<br />

<strong>and</strong> try again.<br />

Use Visual Studio to Create a New ASP.NET Page<br />

In our example, our goal is to display the same data from the Web Part in the Windows<br />

SharePoint Services site, OurNewSharePointSite, in the ASP.NET application<br />

site, OurNewASPNETSite, with as little difficulty <strong>and</strong> required maintenance as possible.<br />

Basically, we’re going for a “set it <strong>and</strong> forget it” arrangement because we don’t<br />

want to have to change code or make changes if the data changes.<br />

To do this, we have several options that include using a custom object you create<br />

to instantiate a cloned Web Part within the ASP.NET site. However, these methods are

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

Saved successfully!

Ooh no, something went wrong!