Setting Up Databases for ASP.NET: A Plesk Panel Walkthrough Print

  • 0


A database is an essential component for most ASP.NET applications, providing a structured way to store, retrieve, and manage data. This guide walks you through the process of setting up a database for your ASP.NET application using Plesk Panel on Windows Server 2019.


  • A machine running Windows Server 2019 with Plesk installed
  • An ASP.NET application that requires a database
  • Admin access to Plesk Panel

Step-by-Step Guide

Step 1: Log Into Plesk Panel

Open your browser, navigate to your Plesk login URL, and enter your admin credentials.

Step 2: Select Your Subscription

Navigate to the 'Subscriptions' section and choose the subscription under which you wish to create the database.

Step 3: Open Databases Tab

In your subscription dashboard, locate and click on the 'Databases' tab.

Step 4: Create New Database

Click the 'Add Database' button. This will open a new page where you can input your database details.

  • Database Name: A name for your database.
  • Database Server: Select 'localhost' or another pre-configured database server.
  • Database Username and Password: Credentials for connecting to the database.

Click the 'OK' or 'Apply' button to create the database.

Step 5: Access the Database

You can manage the database through the built-in Plesk database management tool or through external tools like SQL Server Management Studio (SSMS).

Step 6: Connect Database to ASP.NET Application

In your ASP.NET application, modify the connection string to include the new database details:

<add name="YourConnectionName" connectionString="Server=localhost;Database=YourDatabaseName;User Id=YourUsername;Password=YourPassword;" providerName="System.Data.SqlClient" />

Replace the placeholders with the actual credentials.

Step 7: Test Connection

Before deploying the application, test the database connection locally or through a staging environment to ensure that everything is set up correctly.

Step 8: Deploy and Monitor

Deploy your ASP.NET application and monitor the database performance and connections via Plesk or any other monitoring tool you prefer.


Setting up databases for ASP.NET applications in a Plesk environment on Windows Server 2019 is a straightforward task when you understand the steps involved. Properly configured databases are critical for the performance and reliability of your applications.

Further Support

For additional help, you can refer to our comprehensive knowledge base at or submit a ticket for specialized assistance at

Was this answer helpful?

« Back