Microsoft SQL Server - Connection String (ASP.NET)

All Windows Hosting customers benefit from Microsoft SQL Server database support. To configure your ASP.NET application to access your database you will need to set a connection string within your ASP.NET application’s Web.Config file. Below is a sample ASP.NET connection string which you can use to connect to your Microsoft SQL Server database: 

<connectionStrings>
<add name="SqlConnectionString" connectionString="Data Source=localhost\MSSQLSERVER2016;Initial Catalog=username_dbname;User Id=dbusername;Password=dbpassword;" providerName="System.Data.SqlClient" />

Remember to replace username_dbname as the database name you created in Plesk, along with the database username and password.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I login to Plesk - Windows Dedicated

To log in to your Plesk control panel: Open your web browser, and in the address bar type the...

How do I create E-mail accounts in Plesk

To create an email account: Log in to Plesk and click the "Mail" tab Next, click on "Create...

Switching PHP Versions in Plesk

By default, Darrel Technologies supports PHP 5.3 on its Plesk hosting servers. In order to switch...

Do you have a manual for Plesk?

As a matter of fact, we do. A manual for Plesk can be found here 

Creating a website using the Web Presence Builder

To create a website with Web Presence Builder: Go to either the Home tab or the Websites &...