Use a licensed SQL Server
Host SQL Server databases on your own SQL Server Standard, Web or Enterprise license in Zopanel for Windows: upgrade the panel's Express in place, or install an instance and choose it. Step by step, no sa password.
By default Zopanel installs SQL Server 2022 Express. It is free, but Microsoft limits it to 10 GB per database and about 1.4 GB of memory and 4 cores for the whole instance, shared by every customer on the server. If you have a SQL Server license (Standard, Web or Enterprise, bought or through SPLA), the panel can put your customers' databases on it instead.
You never give the panel an sa password. The panel works with SQL Server as the Windows SYSTEM account, the same way it works with its own Express.
Status: experimental. Tested on Windows Server 2019 (SQL Server 2019), 2022 (Edition Upgrade of the panel's Express) and 2025 (SQL Server 2022, a named instance) with the Developer edition, which has the same engine as Standard and Enterprise. Not yet tested with a purchased Standard or Web license.
Which way to choose
| You have | Do this | Time |
|---|---|---|
| The panel's SQL Server Express, and a license key | Way 1: upgrade Express in place | about 10 minutes |
| No SQL Server yet, or you want a separate instance | Way 2: install your own instance | about 20 minutes |
| SQL Server already installed on this server | Way 2, from step 3 | 2 minutes |
| SQL Server on another machine | Databases → engines (external database servers) |
Way 1: upgrade the panel's Express in place
Nothing moves: the instance keeps its name (SQLEXPRESS), its databases, logins and settings.
- On the server, run SQL Server Setup from your licensed media (the ISO or the folder from the Microsoft Volume Licensing site).
- Choose Maintenance → Edition Upgrade.
- Enter your product key, accept the license terms, choose the instance SQLEXPRESS and press Upgrade.
- In the panel go to Runtimes → your server → SQL Server instance and press Check again. The card now shows your edition, for example Standard Edition.
- Express's memory cap no longer applies, but the instance keeps the
max server memorythe panel set for Express. Raise it in SQL Server Management Studio (Server Properties → Memory) to what the server can spare.
Way 2: install your own instance
1. Install SQL Server with two settings
Run SQL Server Setup → New SQL Server stand-alone installation and go through the wizard as usual. Two screens matter:
- Instance Configuration: choose Default instance (simplest; it is called
MSSQLSERVER) or give it a name, such asHOSTING. - Database Engine Configuration → Server Configuration tab:
- Authentication Mode: choose Mixed Mode (SQL Server authentication and Windows authentication). Websites sign in with the SQL logins the panel creates, so this is required. Setup asks you for an
sapassword; keep it safe, the panel does not use it. - Specify SQL Server administrators: press Add Current User. Then press Add…, type
SYSTEM, press Check Names and OK.NT AUTHORITY\SYSTEMis now in the list; this is the account the panel works as.
- Authentication Mode: choose Mixed Mode (SQL Server authentication and Windows authentication). Websites sign in with the SQL logins the panel creates, so this is required. Setup asks you for an
Feature selection needs only Database Engine Services.
Turn on TCP/IP after setup if the instance has it off. Developer and Express editions, and named instances, often start with TCP off. Sites on the server can still connect by name, but Adminer and the 127.0.0.1,<port> address need TCP:
- Open SQL Server Configuration Manager → SQL Server Network Configuration → Protocols for MSSQLSERVER (or your instance) → TCP/IP → Enabled: Yes.
- On the IP Addresses tab, under IPAll, clear TCP Dynamic Ports and set TCP Port. Use
1433only if the panel's SQL Server Express is not installed on this server: Express already listens on127.0.0.1:1433. Otherwise pick another port, for example14330. - Restart the instance's service. The panel never opens this port in Windows Firewall; open it yourself only if you want remote clients.
If you install from the command line, this does the same (leave out /PID for an evaluation or Developer install):
.\setup.exe /Q /ACTION=Install /FEATURES=SQLENGINE /INSTANCENAME=MSSQLSERVER `
/SECURITYMODE=SQL /SAPWD="<a strong sa password>" `
/SQLSYSADMINACCOUNTS="BUILTIN\Administrators" "NT AUTHORITY\SYSTEM" `
/PID="<your product key>" /IACCEPTSQLSERVERLICENSETERMS
2. Forgot a setting? Run one script
If you did not choose Mixed Mode or did not add SYSTEM, you do not need to reinstall. The panel shows this script with a Copy button when you choose the instance (step 3). Run it once in PowerShell as administrator, signed in as the Windows account you added as a SQL Server administrator:
$server = '.'; $service = 'MSSQLSERVER'; $agent = 'SQLSERVERAGENT'
$c = New-Object System.Data.SqlClient.SqlConnection "Server=$server;Integrated Security=SSPI;Database=master"; $c.Open(); $q = $c.CreateCommand()
$q.CommandText = "IF SUSER_ID('NT AUTHORITY\SYSTEM') IS NULL CREATE LOGIN [NT AUTHORITY\SYSTEM] FROM WINDOWS; ALTER SERVER ROLE sysadmin ADD MEMBER [NT AUTHORITY\SYSTEM]"; [void]$q.ExecuteNonQuery()
$q.CommandText = "SELECT CAST(SERVERPROPERTY('IsIntegratedSecurityOnly') AS int)"; $windowsOnly = ($q.ExecuteScalar() -eq 1)
if ($windowsOnly) { $q.CommandText = "EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2"; [void]$q.ExecuteNonQuery() }
$c.Close()
if ($windowsOnly) { Restart-Service -Name $service -Force; Get-Service -Name $agent -ErrorAction SilentlyContinue | Where-Object StartType -eq 'Automatic' | Start-Service }
'Done. Go back to the panel and choose the instance again.'
This is the script for the default instance. For a named instance, copy it from the panel, which fills in the name (.\HOSTING, MSSQL$HOSTING, SQLAgent$HOSTING).
The script makes NT AUTHORITY\SYSTEM a sysadmin and turns on Mixed Mode only when it is off. Only in that case does it restart SQL Server, which takes a few seconds. It can be run again safely.
3. Choose the instance in the panel
- Runtimes → your server → SQL Server instance.
- In Use, pick your instance, marked (your instance), and press Use this instance.
- The panel checks the instance: it is installed, running, the panel is a sysadmin and SQL Server logins are on. When something is missing it says what, and shows the script from step 2.
- When it is done, the card shows Databases go to MSSQLSERVER, your edition and Managed by you. New SQL Server databases are created there.
New servers do not need SQL Server Express any more. If the recommended set installs it, it stays unused.
What changes for your customers
Nothing in how they work. They create databases and users, import .bak files, back up and restore, use point-in-time recovery and open Adminer as before.
The connection details on the database page show your instance:
127.0.0.1,<port>when TCP is on for the instance, with the port set in SQL Server Configuration Manager..(default instance) or.\HOSTINGwhen TCP is off. That works for sites on this server only. Adminer needs TCP.
What the panel does and does not do on your instance
| The panel does | You do |
|---|---|
| Create databases and their logins (each login owns only its database and cannot list the others) | Install, patch and update SQL Server (Windows Update or cumulative updates) |
| Change passwords, add users and permissions, delete | Network settings: TCP, ports, listening IP, firewall |
| Back up, restore, restore tests, point-in-time recovery, import | Memory, CPU and other server settings |
| Show the edition, version and status | TLS certificates for SQL Server |
| Remote access from outside the server: the per-database remote access switch is not available on your instance |
The panel never changes the sa login, the network or memory settings, and never restarts your instance.
Rules
- One instance per server. All new SQL Server databases on a server go to the chosen instance.
- You can only switch while the server has no SQL Server databases. If it has some, the panel refuses (
MSSQL_TARGET_HAS_DATABASES) so none is left behind in the old instance. Back them up, delete them, switch, then restore. - Going back to the panel's Express is always possible (with the same rule): pick SQLEXPRESS (installed by the panel) and press Use this instance.
If something goes wrong
| Message (code) | What to do |
|---|---|
No instance with this name (MSSQL_TARGET_NOT_FOUND) |
The instance is not installed on this server, or its name is different. The list shows the instances Windows knows about. |
The instance is not running (MSSQL_TARGET_NOT_RUNNING) |
Start its service in Services (SQL Server (MSSQLSERVER)), then press the button again. |
The panel is not a sysadmin (MSSQL_TARGET_NOT_SYSADMIN) |
Run the script the panel shows (step 2). |
SQL Server logins are off (MSSQL_TARGET_WINDOWS_AUTH_ONLY) |
Run the same script. It turns on Mixed Mode and restarts the instance. |
Could not connect (MSSQL_TARGET_UNREACHABLE) |
Check that the service is running and that the Shared Memory protocol is on in SQL Server Configuration Manager. |
Adminer: TCP is off (MSSQL_TARGET_NO_TCP) |
Turn on TCP/IP for the instance (step 1), restart it, press Check again, then open Adminer again. |
The server still has SQL Server databases (MSSQL_TARGET_HAS_DATABASES) |
See Rules. |
Managed by you (MSSQL_TARGET_PROVIDER_MANAGED) |
You tried to turn on remote access for a database. Configure TCP and the firewall for your instance yourself. |
The script fails with Login failed when the Windows account running it is not a SQL Server administrator. Sign in as the account that installed SQL Server, or as one in Specify SQL Server administrators.