In this article I am showing you how to create an external content type for
sharepoint 2010.
Here I am showing three things
-
Creating External Content type.
- Creating External Data column for list.
- Creating External List
Before starting ,you should have an SQL server Table.I have a database with the
name BCS and a table named BCS_customer with two columns NameID and Name
I. Creating External Content type
- For the first step you have to create an external content type using
Sharepoint designer 2010
- Open your site in SPD 2010
- Click on External Content Type.
- Click on New External Content Type
- You will get a screen as shown below Click on Add Connection
- I have selected SQL Server as the option. You have other options also here
- Next you have to give Data connection with my Database server name and
database name. You can also configure out which identity is used here to talk to
the database. Please make sure that you may need to grant permissions on the SQL
Server itself for the appropriate user.
- After That it will add the tables in the connection as shown below.
- Click on the table and select All operations
- From the next screen you have to select the columns you want to display
- If sucessfully added you will get a screen like below
- Click on Create Profile Page
- You are done with External Content Type creation
II. Creating External Data column for list
- Go to Sharepoint list and create a column of type External Data.
- As shown below select the External Content Type we just created
- Click OK
- Select the options as shown below
- In the below Screen you can see the data populated from the BCS_Customer
Table
III. Creating External List
- You have to go back to your Designer and click on the Create list and Form
- Give proper name for your list clik OK
- Once done you will get a an external list connected to our SQL table you can
add/update/delete data resides in SQL Table