Use SANAD Backup
Connections
Add, test and manage the SQL Server connections that backup jobs and restores use.
A connection tells SANAD Backup how to reach one SQL Server instance and how to sign in to it. Every backup job uses one connection, and a restore can target any saved connection. Only administrators see the Connections page.
Add a connection
- In the sidebar, choose Connections, then + Add connection.
- Fill in the New connection form:
| Field | What to enter |
|---|---|
| Profile name | A name you will recognise, such as Production SQL. Each connection needs its own name. |
| Host | The server's name or address, for example localhost or sqlprod01. For a named instance, include it here: sqlprod01\SALES. |
| Port | 1433 by default. For a named instance on a dynamic port, clear this box so that SQL Server Browser finds the instance; if you leave 1433, SANAD Backup connects to whatever listens on port 1433. For a fixed port, enter that port. |
| Authentication | Windows Authentication or SQL Server Authentication. |
| Username, Password | For SQL Server Authentication. The password is stored encrypted. |
| Encrypt connection | On by default. Encrypts the traffic between SANAD Backup and SQL Server. While it is off, SANAD Backup accepts any server certificate without checking it, so Trust server certificate has no effect. |
| Trust server certificate | Accepts the server's certificate without checking it. Most local and self-signed SQL Server certificates need it; leave it unticked for a certificate from a trusted authority. It applies only while Encrypt connection is on, and it starts ticked for a server on this computer. |
| Set as default connection | Marks this connection as the default one. |
Leave Instance name empty; type a named instance in Host instead.
- Choose Test connection. A working connection reports the SQL Server edition, its version and the number of databases. A failed test shows SQL Server's reason, and suggests ticking Trust server certificate when the certificate is the problem.
- Choose Save.
Which Windows account signs in
With Windows Authentication, SQL Server sees the Windows account of the program that connects:
| What connects | Windows account |
|---|---|
| Test connection in the desktop app | You — the account that runs the desktop app |
| Test connection in the web dashboard | The web dashboard service's account (Local System by default) |
| Run Now or Run all enabled jobs in the desktop app | You — the account that runs the desktop app |
| Run Now or Run all enabled jobs in the web dashboard | The web dashboard service's account |
| Scheduled backups | The backup service's account (Local System by default) |
| Scheduled backups while the backup service is stopped and the desktop app is open | You — the account that runs the desktop app |
| The command-line tool | The account that runs the command prompt |
SQL Server shows Local System as NT AUTHORITY\SYSTEM. A test that passes in the desktop app can still fail for scheduled backups when the service account has no SQL Server login with backup rights. Give the service account a login with those rights, or use SQL Server Authentication.
Native backups need SQL Server on this computer
For a native backup, SQL Server writes the .bak file into SANAD Backup's staging folder, %ProgramData%\Sanad\backups\staging, and a restore has SQL Server read it from there. That works when SQL Server runs on the same computer as SANAD Backup. For a SQL Server on another computer, choose the Script output format in the backup job.
If a native backup fails because SQL Server's service account cannot write to the staging folder, see Troubleshooting.
Azure SQL Database
When the host name ends in .database.windows.net or a sovereign-cloud equivalent, SANAD Backup recognises Azure SQL Database. It always encrypts the connection and always checks the server certificate, and the connection card shows an Azure SQL badge. Back up Azure SQL Database with the Script output format; Azure SQL Database does not offer native backups to a file.
Edit, duplicate or delete a connection
Each connection card shows the host, the authentication and SSL, with Edit, Duplicate and Delete. SSL follows the Encrypt connection box, not Azure SQL's always-on encryption: an Azure SQL connection is encrypted even when its card shows SSL Disabled.
- Edit opens the form with the saved values. Leave Password blank to keep the saved password, then choose Update.
- Duplicate opens a new connection form with the same settings and "(Copy)" added to the name. Enter the password again before you save.
- Delete asks for confirmation. SANAD Backup refuses to delete a connection that a job still uses — including a deleted job whose backups are kept for restore.
From the command line
Sanad.CLI connection list
Sanad.CLI connection test "Production SQL"
connection test signs in with the account of the command prompt when the connection uses Windows Authentication. Connections are created and changed in the app; the command-line tool only lists and tests them. See Command line.