ENTERPRISE

Business Intelligence in SharePoint 2010 with Business Connectivity Services : External Content Types (part 1)

2/11/2011 9:07:52 AM
SharePoint 2010 adds the notion of external content types. The content type, first introduced in SharePoint 2007, is a way of describing an entity of information stored in SharePoint. Document content types can be items such as contracts, policies, and forms. Nondocument content types can be items such as announcements, tasks, or contacts. All these are content types whose information is physically stored within the SharePoint taxonomy. Each would have its respective set of attributes, known as columns, properties, or metadata.

An external content type is just what it sounds like: an entity whose underlying data exists external to SharePoint. Just like a SharePoint content type, an external content type will also have its set of attributes or columns. Using BCS, external content types can be defined and made available for consumption within SharePoint.

Options for Building BCS Entities

In the 2007 version of the BCS—known at the time as the Business Data Catalog (BDC)—definitions of entities required third-party tools. A few competing tools were available, but they provided only functionality for building BDC entities. Two such products are BDC Metaman from Lightning Tools and MOSS BDC Design Studio from Simego.

However, the 2010 versions of Visual Studio and SharePoint Designer, both of which provide functionality for developing a wide range of other SharePoint features, introduce built-in BCS design and development. This can enable an easy definition of external content types for later consumption in SharePoint. The ability to build BCS functionality using the SharePoint tools already used for other SharePoint extensions is one improvement in the capabilities offered by the 2010 suite of products.

Developing external content types in Visual Studio 2010 requires a machine running SharePoint 2010. This can be either a 64-bit Windows Server 2008 machine running as a SharePoint server, or a Windows 7 machine, which is capable of running a development version of SharePoint.

Installing SharePoint Designer

SharePoint Designer 2010 also includes built-in capabilities for developing external content types. SharePoint Designer 2010 is a free tool that can be used to extend and customize SharePoint sites. To download and install SharePoint Designer 2010, complete the following steps:

1.
In Internet Explorer, go to http://www.microsoft.com/downloads.

2.
In the Bing Search box on the Downloads page, type SharePoint Designer 2010.

3.
Select either Microsoft SharePoint Designer 2010 (32-bit) or Microsoft SharePoint Designer 2010 (64-bit), depending on your desktop operating system.

4.
On the subsequent page, click the Download button. When prompted with Do You Want to Run or Save This File? select Save, and save the file to your Desktop. The total size of the download is 254MB for the 32-bit version and 279MB for the 64-bit version.

5.
When the download is complete, double-click the SharePointDesigner.exe file on your desktop. This begins the installation process.

6.
After the file extraction process completes, read the Microsoft Software License Terms, and accept the terms of the agreement; then click OK. Click the Install Now button. When the installation completes, you will be ready to start using SharePoint Designer.

Preparing to Build External Content Types

Prior to building External Content Types in SharePoint Designer, a few preparation steps are necessary. First, a SharePoint site is required. To create a new SharePoint site, complete the following steps:

1.
On the SharePoint 2010 server, select Start and SharePoint 2010 Central Administration.

2.
Under the Application Management, click Create Site Collections.

3.
In the Title box of the Create Site Collection page, type BCS Sample Site.

4.
In the URL section, select the /sites/ option in the drop-down box, and type BCSSample in the text box.

5.
Enter one or two login accounts to serve as the site collection administrator(s).

6.
In the Template Selection section, choose the blank site template, as shown in Figure 1.

Figure 1. Create a blank SharePoint site.

Note

You need a server running SQL Server 2008 and SQL Server Analysis Services to proceed with this exercise.


1.
Download and install the AdventureWorks samples databases by visiting http://msftdbprodsamples.codeplex.com/.

2.
Click the link to the SQL Server 2008R2 product sample databases (http://msftdbprodsamples.codeplex.com/releases/view/45907), and then click the AdventureWorks2008R2 RTM.exe link; click I Agree on the licensing page. Click Save and save the installation file to a machine running SQL Server 2008.

Caution

The sample product databases for AdventureWorks will change over time, so the link above might be replaced by a newer version. If possible, locate the specific .exe file listed in this section because using an updated file might invalidate certain steps in this or future sections.

3.
When the file finishes downloading, double-click the executable, and the self-extracting zip unloads the files. Read and accept the license terms.

4.
On the next screen, select the AdventureWorksLT database to install, plus any additional ones that you would like to use.
Other  
  •  Recovering from a Disaster in an Exchange Server 2010 Environment : Recovering from Database Corruption
  •  Recovering from a Disaster in an Exchange Server 2010 Environment : Recovering Exchange Server Application and Exchange Server Data
  •  Recovering from a Disaster in an Exchange Server 2010 Environment : Recovering from a Complete Server Failure
  •  Sharepoint 2007: Add a Column to a List or Document Library
  •  Sharepoint 2007: Create a New Document Library
  •  Sharepoint 2007: Open the Create Page for Lists and Libraries
  •  Exchange Server 2010 : Developments in High Availability (part 3) : Backup and restore
  •  Exchange Server 2010 : Developments in High Availability (part 2) : Configuring a Database Availability Group & Managing database copies
  •  Exchange Server 2010 : Developments in High Availability (part 1) : Exchange database replication & Database Availability Group and Continuous Replication
  •  High Availability in Exchange Server 2010 : Exchange Server database technologies
  •  SharePoint 2010 : Cataloging the Best Scripts to Automate SharePoint Administration
  •  SharePoint Administration with PowerShell (part 2)
  •  SharePoint Administration with PowerShell (part 1)
  •  Sharepoint 2007: Approve or Reject a File or List Item
  •  Exchange Server 2007 : Configure the Client Access Server - Enable POP3 and IMAP4
  •  Exchange Server 2007 : Configure the Client Access Server - Enable and Configure Outlook Anywhere
  •  Exchange Server 2007 : Configure the Client Access Server - Create and Apply ActiveSync Mailbox Policies
  •  SharePoint 2010 : Understanding Windows PowerShell Concepts (part 3)
  •  SharePoint 2010 : Understanding Windows PowerShell Concepts (part 2)
  •  SharePoint 2010 : Understanding Windows PowerShell Concepts (part 1)
  •  
    Top 10
    Qooq - The First Culinary Tablet Made For The Kitchen
    HP Envy 23 TouchSmart - All-in-One Desktop PC
    Kobo Aura HD - An Excellent Ebook Reader
    Razer Edge Pro - It Combines Tablet, Laptop And Gaming PC In One
    Samsung Galaxy S4 Review (Part 8)
    Samsung Galaxy S4 Review (Part 7)
    Samsung Galaxy S4 Review (Part 6)
    Samsung Galaxy S4 Review (Part 5)
    Samsung Galaxy S4 Review (Part 4)
    Samsung Galaxy S4 Review (Part 3)
    Most View
    Canon EOS M – Is The Final Big Player?
    Windows 7 : Networking and HomeGroup Sharing - Sharing Between PCs (part 1) - HomeGroup Sharing
    KWA 150 SE – The Most Expensive Amplifier Of ModWright
    MSI FM2-A85XA-G65 Motherboard Review (Part 1)
    Nikon D600 Digital SLR Camera - Full-Framed Temptress
    Tips & Tricks Of November 2012 (Part 1)
    Popular GPS Apps Shootout (Part 1)
    Cambridge Audio Azur 751R - The Importance Of Being Earnest (Part 1)
    Google vs Apple vs Microsoft (Part 5)
    Roll Your Own Home Server (Part 1)