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!


All SharePoint Versions

The web parts are functional components that extend your SharePoint environment whether it’s hosted, on-premises, or part of Microsoft® Office 365.

SharePoint 2013, 2016, 2019, Online (Office 365)

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 2013, 2016, 2019

SharePoint

Product Suites

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


Essentials Suite


Essentials Plus Suite


Bamboo Premier Suite


Project Management Suite


Knowledge Management Suite


External User Manager


 

For more information on our product suites, contact us.

Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!