> For the complete documentation index, see [llms.txt](https://raviram.gitbook.io/quick-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raviram.gitbook.io/quick-reference/install/localdb.md).

# LocalDB

## Installing Microsoft LocalDB

Microsoft is no longer shipping separate MSI file for LocalDB it has to be installed either through Visual Studio installer or through SQL Server installer only.

{% hint style="danger" %}
If the default instance is not running properly, none of the repair steps will work and might not work even after reinstalling everything from scratch! Better create another instance as shown below:
{% endhint %}

### Check running instances

```
SQLLocalDB info
```

### Start an instance

```
SQLLocalDB start <instance_name>
```

### Create a new instance

```
SQLLocalDB create MyInstance
SQLLocalDB start MyInstance
```
