How to Create Data Sources Using SharePoint Designer 2013, Part II: Single Sign-on Authentication

With Microsoft SharePoint Designer 2013, you can connect to any kind of database, including Microsoft SQL Server (SQL Server 2005 and SQL Server 2008), Oracle, and OLE DB protocol. Moreover, there are three options for connecting to databases:

This article shows you how to create a connection to a database. It also shows you how to connect to a database using Single Sign-On Authentication.

Steps:

Step 1: Using SharePoint Designer 2013, connect to site.

Make sure the site you are working on is a Microsoft SharePoint Foundation 2013 site or a Microsoft SharePoint Server 2013 site. Then, identify the kind of authentication you want to use.

Open SharePoint Designer 2013, and select Open Site.

Type the site name into the Open Site dialog box, and click the Open button:

The Windows Security dialog box will open; enter your username and password:

 

Step 2: Configure Single Sign-On Authentication in Central Administration.

Go to the Central Administration page, then click Manage service applications:


You will see the Services listed; click on the Secure Store Service:


Click on the Generate New Key icon in the Ribbon. Make sure that you input the Pass Phrase:


Enter the following information to create a new Target Application:

  • Target Application ID
  • Display Name
  • Contact E-mail


 


There are two choices for Field Type:

  • Windows User Name and Windows Password (if you want to use the Windows Authentication to connect)
  • User Name and Password (if you want to use the SQL Authentication to connect)

Click Next:

Input the user who you want to have full control permission in the Target Application.

Click OK:


After the Target ID is created, click the drop-down to select Set Credentials item menu:

In Credential Owner: type the user account.

In Windows User Name: type the user name authorized to connect to the SQL database.

In Windows Password: type the password belonging to the authorized user.

In Confirm Windows Password: type the password belonging to the authorized user.


Click the OK button to complete.

 

Step 3: Connect to Data Source.

  •  Click Data Sources in the Navigation Pane:

 

  •  On the Data Sources tab in the Ribbon, in the New group, click Database Connection:

  •  In the Data Source Properties dialog box, on the Source tab, click Configure Database Connection:

  • In the Configure Database Connection dialog box, under Server Information, in the Server Name box, type the name of the server where you want to connect.
  • In the Provider Name box:
    • If you are connecting to an external Microsoft SQL Server database, click Microsoft .NET Framework Data Provider for SQL Server.
    • If you are connecting to an external database that is OLE DB compatible, including versions of SQL other than Microsoft SQL, click Microsoft .NET Framework Data Provider for OLE DB.
  • Under Authentication, select the Use Single Sign-On authentication check box, and then click Settings.
  • In the Single Sign-On Settings dialog box, in the Application Name textbox, type the Application Name that you configured in Single Sign-On above.
  • In the Application field to use as the username text box, type the user name that you configured in Single Sign-On above.
  • In the Application field to use as the password text box, type the that you configured in Single Sign-On above.
  • Click OK.
  • Click Next.

For example: Here, I connect to SQL Server 2008; with Northwind Database; Employees table:

You will see the Database Name under Database Connections:

Cheers!