# Shared Memory Provider: Could not open a connection to SQL Server

When performing a backup of an MSSQL database, you may receive the following errors in your job logs.

```
Couldn't connect to database: Shared Memory Provider: Could not open a connection to SQL Server [2].
```

```
Couldn't connect to database: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
```

This article aims to explain how eazyBackup connects connects to MSSQL databases and offer some basic troubleshooting steps.

### **SQL Server Connection Details:**

Connection details should be supplied before selecting databases. eazyBackup will only connect to an SQL Server running on the local machine. You must enter the instance name, or leave the field blank to use the default instance.

### **Server Address:**

The address is always `localhost`, eazyBackup does not use TCP addresses or TCP ports to connect to SQL Server instances. eazyBackup makes use of "Shared Memory" to connect to SQL Server instances.

If you encounter authentication issues connecting to your SQL Server, you must ensure that "Shared Memory protocol" is enabled in SQL Server Configuration Manager.

Open the SQL Server Configuration Manager:

```
Check that you have the Shared Memory protocol enabled
```

<img src="https://eazybackup.com/wp-content/uploads/2021/08/Sql_server_configuartion_manager_protocol_settings.png" alt="" width="563">

### **Drivers**

Ensure you have the correct drivers installed so that eazyBackup can connect to your database.

`OLE DB` and `ODBC` are data access methods that use pluggable "drivers" / "providers" for connecting to databases like SQL Server. The following drivers for `OLE DB` / `ODBC` support SQL Server:

<table><thead><tr><th width="180">Driver</th><th width="166">TLS 1.2 Support</th><th>Notes</th></tr></thead><tbody><tr><td><code>MSOLEDBSQL</code></td><td>Yes</td><td>Included with SQL Server 2016 and 2017; Optional download from <a href="https://www.microsoft.com/en-us/download/details.aspx?id=56730">https://www.microsoft.com/en-us/download/details.aspx?id=56730</a></td></tr><tr><td><code>SQLNCLI11</code></td><td>Yes</td><td>Included with SQL Server 2012 and 2014; Optional download from <a href="https://www.microsoft.com/en-us/download/details.aspx?id=50402">https://www.microsoft.com/en-us/download/details.aspx?id=50402</a></td></tr><tr><td><code>SQLNCLI10</code></td><td>No</td><td>Included with SQL Server 2008</td></tr><tr><td><code>SQLNCLI</code></td><td>No</td><td>Included with SQL Server 2005</td></tr><tr><td><code>SQLOLEDB</code></td><td>No</td><td>Included with SQL Server (all versions); Included with Windows since XP / Server 2003</td></tr></tbody></table>

Find out which drivers you have installed.

* for

  ```
  ODBC, Open the Run dialog and enter odbcad32.exe > check the "Drivers" tab; or
  ```

* for

  ```
  OLE DB, via .
  ```

eazyBackup defaults to using the `MSOLEDBSQL` driver if available. If this driver is not available, the `SQLNCLI11` and `SQLOLEDB` drivers will be used as a fallback. **Authentication** eazyBackup allows you to connect to SQL Server using either Windows authentication or native SQL Server authentication. If you are using SQL Server authentication, you must enter a valid username and password to connect to SQL Server. If you are using Windows authentication, you can either:

* > * enter valid Windows credentials to impersonate that user account; or
  > * leave the field blank, to connect as the logged-on account of the background `backup.elevator` service (normally running as the `LOCAL SYSTEM` Windows user account); or
  > * enter `NT SERVICE\backup.delegate` with no password, to connect as the logged-on account of the background `backup.delegate` service (normally running as the `NT SERVICE\backup.delegate` Windows user account)

In addition, you may assign any Windows user account to have `sysadmin` rights within SQL Server. Multiple instances eazyBackup supports backing up multiple instances from SQL Server. You can select an instance for backup, by entering the instance name in the "Instance Name" field. Leave this field blank to use the default instance. eazyBackup automatically lists available instances for selection in the drop-down menu. **Confirm the SQL Server is running.**

```
All Programs >> Microsoft SQL Server xxxx >> Configuration Tools >> 
SQL Server Configuration Manager >> SQL Server Services, 
check if SQL Server service status is “Running”.
```

<img src="https://eazybackup.com/wp-content/uploads/2021/08/mssql_server_browser_service.png" alt="" width="563">

***

[eazyBackup](https://eazybackup.com)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eazybackup.com/troubleshooting/shared-memory-provider-could-not-open-a-connection-to-sql-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
