How to Create Data Sources Using SharePoint Designer 2013, Part III: Custom Connection String

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 a custom connection string.

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 kind of authentication you want to use.

Open SharePoint Designer 2013 program, and select Open Site:

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

The Windows Security dialog box is shown; you need to input the user name and password of an authorized user:

 

Step 2: Connect to Data Source

  •  Click Data Sources in the Navigation Pane:

  •  On the Data Sources tab in the Rbbon, 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, select the Use Custom connection string check box, and then click Edit.
  • In the Edit Connection String dialog box, in the Provider Name list, click the data provider that you want to use.
  • In the Connection String text box, type your connection string.
  • An example of an OLE DB connection string:
    Provider=myProvider;Data Source=myPath;Initial Catalog=catalogName;
    User Id=username;Password=password;
  • An example of an Oracle connection string:
    Data Source=myDatabase;User Id=username;
    Password=password;Integrated Security=no;
  • An example of an SQL Server connection string:
    Data Source=myServerAddress;Initial Catalog=myDataBase;
    User Id=username;Password=password;
  • 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!


SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

Small Business Pricing and Discounts

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2016, 2019, 2022 - Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 Technology Consultants helps you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Consulting to Streamline Your Department

M365 Plus

Managed Services

Microsoft 365

Consulting to Streamline Your Department


Human Resources


Information Technology


Marketing Campaigns


Healthcare


Sales

 

Our Consultants Have What You Need

Federal Contractors