How to get SQL database Connection String

If you are working with SQL endpoints in BIS connections (such as SQL Reader and SQL Writer) you require Connection String to be able to connect the SQL database. If you are not sure how to write the connection string, this article explains how you can easily get SQL service database connection string from visual studio.

  1. You should know the following details of SQL Server:
    1. Server Name
    2. Username
    3. Password
    4. Database name which you want to connect
  2. Open Visual Studio.
  3. Click View, Server Explorer.
     image
  4. Right click Data Connections, Add Connection.
    image
  5. On the Add Connection window, fill in the relevant details such as Server Name and Select or enter a database name.
    image
  6. Click on Test Connection button. If you submit the correct credentials, you will get the Test connection succeeded confirmation message.
  7. Now your connection is working successfully so, now click on Ok button. You will get one data connection under Data Connections.
  8. Right click on your connection and click Properties.
  9. You will get properties window of your connection. Find Connection String property and copy the connection string.
    image
  10. Paste and use this connection string in properties of SQL Reader and SQL Writer endpoints.
    image

Please note that we have used Visual Studio 2013, as an example,  to find the SQL connection string in this article.

About Paresh Sharma

Product Consultant for To-Increase Business Integration Solutions| Support Consultant for To-Increase BIS and IEM Solution|Certified Scrum Master|Over 10 years of experience in IT Industry
This entry was posted in Others and tagged , , . Bookmark the permalink.

3 Responses to How to get SQL database Connection String

  1. Pingback: Creating Import Connection Using SQL Integration | Dynamics NAV Integration Insights from the Experts

  2. Hi Paresh. I have a muck quicker way to get the connection string. Create a new Text Document on your desktop. Change the file extension from .txt to .udl. Open the file and you can configure and test the connection. Save and open the file in Notepad to get the connection string. Within 10 seconds without the need of Visual Studio.

  3. Pingback: Learn how to create an import connection using SQL Server integration with Business Integration Solutions for Microsoft Dynamics NAV - To-Increase

Leave a comment