Excel service to import external database using secure store connection in SharePoint

Implement Excel Service to import External DB Using Secure Store connection tutorial
SharePoint deveopment training course

This SharePoint tutorial explains, how to import external data using secure store connection using excel services in SharePoint

In my previous articles, we have covered configure SQL Server Analysis Services (SSAS), importing sample DB for SSAS now it is time for us to explore in detail how to leverage Excel services to get data from external DB.

In this article, I would like to walk you through the steps to import external SQL table data.

This step/approach is really important if you want to configure BI in SharePoint so my friends I advise you to learn this process.

Excel service to import external data using secure store connection

Open a new excel workbook and create connection to external DB by following the steps advised below. Click on Connections

  • Click on Add to create a new connection
  • Click on Browse for more
  • Click on Select new source to create a new connection string
excel services to import external data
excel services in sharepoint

Enter the SQL Server name as per your requirement.

excel services to import external data sharepoint 2013

Without fail select “None” for excel services authentication settings. By selecting this option we are forcing SharePoint to use dedicated Target Application.

excel services in sharepoint 2013

Now we have completed connecting to an external SQL server DB successfully. Now import the data and export it to the SharePoint BI document library.

Follow the below set of screenshots to achieve the same:

Click on Existing connections under Data from the ribbon controls.

excel service to import external data using secure store connection

Select the appropriate connection string.

sharepoint 2013 excel services

Select AdventureWorksDW2012 from the dropdown and select DimGeography table.

excel service to import external data using secure store connection sharepoint

Select “Table” option to import the data.

excel Service to import external data sharepoint 2016

It will import all the data from “DimGeography” table which will look like as below:

excel Service to import external data sharepoint 2013

Save the excel workbook and upload it to the document library of SharePoint BI site collection.

Click on Refresh all the connections to fetch the latest data to ensure we have latest data:

excel Service to import external data sharepoint

Click on yes in the below popup to refresh/reload the data.

Configure excel services data refresh by using external data source

Now to ensure that the excel services are working seamlessly, log-on as a non-admin user and refresh the data.

excel service to import external data using secure store connection sharepoint 2016
excel service to import external datae using secure store connection sharepoint 2013

Now let us update the data in the table and replicate the same in sharepoint through excel services

Log on to SQL server and update some value in “DimGeography” table
Ex:

excel services to import external data

As soon as update the text, log-in back to sharepoint BI site and refresh the data as a non-administrator

Note: The SQL update might take 10 to 15 min to replicate.

excel services in sharepoint

Note: To achieve this seamless progress ensure that BI service account has required access on DB
Follow the below steps to add/grant the required access to BI service account.

  • Logon to SQL Server with SQL administrator account
  • Expand logins under security and add a new login
excel services in sharepoint 2013
  • Add BI service account
excel services in sharepoint 2016
  • Select “User Mappings” and add the required roles
excel services to import external data sharepoint 2013

You may like following SharePoint excel services tutorials:

This tutorial, we learned excel service to import an external database using a secure store connection in SharePoint.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 13+ years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

View all posts by Krishna Vandanapu →