Creating SQL Server Databases in Plesk
Plesk supports both MariaDB/MySQL and SQL Server databases. Here's how to create each type correctly.
Database Server Types Available
| Database Type | Best For | Hosting Plans |
|---|---|---|
| Microsoft SQL Server | ASP.NET, .NET Core applications | Windows hosting (ASP.NET plans) |
| MariaDB/MySQL | PHP, WordPress, general web apps | Linux and Windows hosting |
Creating a SQL Server Database
- Log into Plesk
- Go to Websites & Domains
- Click Databases
- Click Add Database
- Important: Look for the Database server dropdown
- Select your SQL Server option (e.g., "MSSQLSERVER2022" or "MSSQLSERVER2019")
- Enter database name
- Create database user with strong password
- Click OK
Why Can't I See SQL Server Option?
If you only see MariaDB options:
Check 1: Correct Hosting Plan
- SQL Server is only available on Windows/ASP.NET hosting plans
- Linux plans only offer MariaDB/MySQL
- Verify your plan type in your client area
Check 2: SQL Server Quota
- Some plans have limited SQL Server databases
- Check if you've reached your quota
- View quotas in Plesk under Statistics
Check 3: Subscription Settings
- SQL Server may need to be enabled for your subscription
- Contact support if the option doesn't appear
SQL Server Versions
You may see multiple SQL Server versions:
- SQL Server 2022 - Latest, recommended for .NET 8+
- SQL Server 2019 - Stable, widely supported
- SQL Server 2017 - Legacy support
Recommendation: Use SQL Server 2022 or 2019 for new projects.
Database Connection Information
After creating your database, find connection details:
- Go to Databases
- Click on your database name
- View Connection Information:
- Server name
- Database name
- Username
- Port (if applicable)
Example Connection String:
Server=SQL2022-001.adaptivewebhosting.com;Database=DB_12345_myapp;User Id=DB_12345_myapp_admin;Password=YourPassword;TrustServerCertificate=True;
Using Multiple Databases
For applications requiring separate databases (e.g., app data + identity):
- Create first database normally
- Click Add Database again
- Select same SQL Server
- Use same or different user as needed
Multiple Connection Strings:
{
"ConnectionStrings": {
"DefaultConnection": "Server=...;Database=DB_12345_app;...",
"IdentityConnection": "Server=...;Database=DB_12345_identity;..."
}
}
Troubleshooting
Database creation failed:
- Database name may already exist
- Quota limit reached
- Invalid characters in name (use letters, numbers, underscores)
Cannot connect after creation:
- Wait 1-2 minutes for provisioning
- Verify username/password exactly as shown
- Check server name is complete (including instance)