> For the complete documentation index, see [llms.txt](https://docs.rmhpos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rmhpos.com/installation/install-store-manager-single-store/installation-sm-configuration-sql-server.md).

# Configure the connection to SQL Server and the store database

{% hint style="info" %}
You must restore or create the store database prior to connecting to it. You can use the sample store database to start. You can find sample store databases under **C:\Program Files (x86)\Retail Hero\RMH Store Manager\DBFiles**.
{% endhint %}

1. Open **Store Administrator**. The shortcut should be available on your desktop.
2. Click **Configuration**.

<div align="left"><img src="/files/5keKoJHxdMjcqskWCR0b" alt=""></div>

3. In the **Server Name** field, type the host name of the computer where you installed SQL server, a backwards slash (\\), and the name of the SQL Server instance.

{% hint style="info" %}
If you installed Microsoft SQL Server, POS, and Store Manager on the same computer, you can enter a period, (local), or localhost into this field.
{% endhint %}

<div align="left"><img src="/files/laMJh6jlosU3B69LmwaM" alt=""></div>

4. In the **Database** field, type the name of the store database.
5. Select **Use SQL Server Authentication**.
6. Enter the **User name** and **Password** for the system account.
7. Click **Test Database Connection**. You should see the message **Database successfully connected**.

<div align="left"><img src="/files/q94uqJN6hJ11fNCC1PNe" alt=""></div>

8. Click **Save And Close**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.rmhpos.com/installation/install-store-manager-single-store/installation-sm-configuration-sql-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
