> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/ams/v2.1/help-and-support/app-pages/database-page.md).

# Database configuration page

![](https://1174763835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYKUIJoHjACu79Ekwwf7i%2Fuploads%2Fgit-blob-3b5840a8e882e0295a7d117e7f17d287d646d329%2Fui-page-database.png?alt=media)

## Connection details

This shows the current server and database name used by the Access Manager service.

## Maintenance

### Enable automatic database maintenance

This option configures AMS to automatically perform required maintenance to indexes and statistics. You can disable this if you have your own scripts to manage database maintenance.

It is recommended to leave this setting enabled.

## Backup (only available for SQL Express installations)

If you are using the pre-configured SQL Express engine, configured at installation time, then you will see additional options related to backing up the database.

If you are using Azure SQL, Amazon RDS, or an external SQL server, then you must configure backups in those systems. The in-built backup options will not be shown.

### Enable nightly database backup

You can have Access Manager automatically backup the AMS database each night using the built-in SQL server backup mechanism. If you have your own backup system in place, disable this setting so as not to cause conflicts.

### Automatically delete backups older than X days

If AMS is configured for automatic backup, you can choose how many days worth of backups you want to keep. Backups older than the specified period will be automatically purged.

### Backup folder

By default, SQL server has a default folder configured for storing backups. You can override the automatic backup location by specifying another path here. Note, that this path must be relative to the SQL server itself, and the SQL service account must have appropriate permission to this location.


---

# 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.lithnet.io/ams/v2.1/help-and-support/app-pages/database-page.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.
