🌐
Overview
SQL Server is one of the most common databases used by Romanian companies, especially for ERP apps, CRM systems, internal tools, accounting utilities, and invoicing platforms.
On a Windows VPS from OnCloud/Vying, installing SQL Server is straightforward as long as the server is properly prepared (firewall, RAM, Windows updates, .NET support).
This guide walks you through:
- Preparing your Windows VPS
- Choosing the correct SQL Server edition
- Installing SQL Server
- Installing SQL Server Management Studio (SSMS)
- Configuring firewall access
- Creating your first database
- Securing the installation
🟦
1. Prerequisites
Before installing SQL Server, make sure your VPS has:
✔ Updated Windows
Open the Start menu → type “Windows Update” → install updates → restart.
✔ Administrator access
You must log in using the Administrator user.
✔ Enough RAM
- SQL Server Express: minimum 4–6 GB
- Standard / Enterprise: minimum 8–16 GB (We scale your VPS instantly if needed.)
✔ Internet access
Needed for downloading the installer.
🟩
2. Downloading SQL Server
Go to the official Microsoft SQL Server download page.
Choose the version you need:
SQL Server Express
✔ Free
✔ Perfect for small apps, CRMs, invoicing tools
✔ Limitations: 1 CPU, 10 GB per database
SQL Server Standard
✔ For medium businesses
✔ Supports multiple CPUs, Agent jobs, larger DBs
SQL Server Developer
✔ Free
✔ Full features
✔ Only for testing, not production
Download the installer named SQL Server Setup from Microsoft.
🟧
3. Starting the Installation
Once downloaded:
- Run the installer file
- Choose Basic or Custom
- Basic → fast install
- Custom → recommended for VPS servers
- Choose installation path (default is fine)
- Wait for the installer to finish downloading required packages
- Click Install
The installer may reboot your VPS halfway through.
🟨
4. SQL Server Configuration
During install, you’ll be asked:
✔
Instance Name
- Default: “MSSQLSERVER” (good for 90% of cases)
- Named instance: use something like “ONCLOUD” if you want multiple databases separated
✔
Authentication Mode
Choose Mixed Mode
This gives you:
- Windows authentication
- SQL authentication (required for external apps)
You will be asked to set the sa password.
Choose a secure one.
✔
Data Directories
If your VPS has a second disk (D: drive), store databases on D:
It’s faster, safer, and prevents C: from filling.
🟦
5. Installing SQL Server Management Studio (SSMS)
Your database tools live inside SSMS.
Download from Microsoft: SQL Server Management Studio.
Install it by clicking Next → Next → Install.
After install:
Open SSMS → Connect → choose:
- Server type: Database Engine
- Server name: localhost
- Authentication: SQL Authentication
- Login: sa
- Password: the one you set
If it connects → install is successful.
🟪
6. Creating Your First Database
Inside SSMS:
- Right-click “Databases”
- Choose “New Database”
- Enter name (ex: Firma2025, AppDB, etc.)
- Click OK
That’s it — your VPS now hosts its first SQL Server database.
🟥
7. Firewall Configuration (Important!)
By default, SQL Server listens on port 1433.
If your application connects over the internet (not recommended unless secured), you must allow the port:
- Open Windows Defender Firewall with Advanced Security
- In “Inbound Rules”, click “New Rule”
- Select “Port”
- Choose TCP
- Type port number: 1433
- Allow the connection
- Choose profiles (Domain / Private — avoid Public unless required)
- Name the rule: “SQL Server 1433 Allow”
⚠️ Critical Warning
Never expose SQL Server publicly unless:
- You use a VPN
- Or specific fixed IP whitelisting
- Or encrypted tunnels
Most Romanian ERPs connect only through VPN — safest option.
🟫
8. Allow Remote Connections (If Needed)
If your software connects remotely:
- Open SQL Server Configuration Manager
- Expand “SQL Server Network Configuration”
- Click “Protocols for MSSQLSERVER”
- Enable TCP/IP
- Restart the SQL Server service
Then in SSMS:
- Right-click the server
- Go to “Properties”
- Select “Connections”
- Check “Allow remote connections to this server”
🟩
9. Security Best Practices
✔ Always use a VPN (OpenVPN)
SQL should never be exposed to the public internet.
✔ Use strong passwords for “sa”
Minimum 12 characters, mixed symbols.
✔ Create separate users for apps
Never give full admin to business software.
✔ Place databases on D: drive
Keeps performance high and prevents C: from filling.
✔ Keep Windows updated
SQL depends heavily on Windows security patches.
🟦
10. Common Issues & Fixes
❌ SSMS cannot connect to server
- TCP/IP disabled → enable from Configuration Manager
- Wrong password → reset sa password
- Firewall blocked → allow port 1433
- SQL service stopped → start service
❌ Application cannot connect
- VPS firewall blocking app IP
- Wrong connection string
- Using Windows auth instead of SQL auth
- SQL Browser disabled (for named instances)
❌ SQL Server slow
- Low RAM → upgrade to 8 or 16 GB
- C: almost full → move DB to D:
- Poor indexing → rebuild indexes in SSMS
✔
Summary
SQL Server on a Windows VPS is simple:
- Download installer
- Use Mixed Authentication
- Set strong sa password
- Install SSMS
- Configure firewall
- Enable TCP/IP
- Create your databases
- Secure connections with VPN
Your server is now fully ready for business apps, ERPs, CRMs, invoicing tools, SAGA alternatives, and anything else needing SQL.