You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Azure SQL Managed Instance](sql-managed-instance-paas-overview.md) auditing tracks database events and writes them to an audit log in your Azure storage account.
22
+
This article teaches you to configure auditing for [Azure SQL Managed Instance](sql-managed-instance-paas-overview.md). Auditing tracks database events and writes them to an audit log in your Azure storage account.
23
23
24
24
Auditing also:
25
25
@@ -304,6 +304,20 @@ The key differences in the `CREATE AUDIT` syntax for auditing to Azure Blob stor
304
304
- Shutdown option is **not supported**.
305
305
- `queue_delay` of 0 is **not supported**.
306
306
307
+
## Permissions
308
+
309
+
To set up auditing, you need database permissions within SQL managed instance, and you also need permissions to the Azure resources that are used for storing and accessing the audit logs.
310
+
311
+
To set up SQL managed instance auditing you need to following database permissions:
312
+
313
+
|Database permissions |Configure audit |View audit logs using T-SQL |
314
+
|---------|---------|---------|
315
+
|**VIEW DATABASE SECURITY AUDIT** |No|Yes|
316
+
|**ALTER ANY DATABASE AUDIT** | Yes | No |
317
+
|**CONTROL DATABASE** | Yes | Yes |
318
+
319
+
To configure auditing to Azure storage, you need the **Storage blob data contributor** role on the storage account or higher permissions. To configure auditing to Event Hubs or Log Analytics, you need the **Monitoring Contributor** role or higher permissions on the resource group where the Event Hub or Log Analytics workspace is provisioned.
Copy file name to clipboardExpand all lines: azure-sql/managed-instance/frequently-asked-questions-faq.yml
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -135,10 +135,6 @@ sections:
135
135
136
136
- name: Free SQL Managed Instance offer
137
137
questions:
138
-
- question: What if I don't see the banner and "Apply Offer" button?
139
-
answer: |
140
-
It's possible your subscription isn't eligible for the [free SQL Managed Instance](free-offer.md#supportability). Otherwise, there's a limit of one free instance per subscription. You need to remove an existing free instance to create another one. If you recently deleted your free instance, it can take up to one hour for the free offer banner to reappear.
141
-
142
138
- question: Help! I'm no longer able to connect to my instance!
143
139
answer: |
144
140
It's likely you ran out of credits for the month. Go to your SQL managed instance in the Azure portal and check the state. See if your instance is in a stopped state due to insufficient credits.
@@ -149,23 +145,19 @@ sections:
149
145
150
146
- question: Can I restore a database to the free instance?
151
147
answer: |
152
-
Yes, you can restore an [automated backup](recovery-using-backups.md) from Azure storage, or you can [Restore a database backup by using SQL Server Management Studio (SSMS)](restore-sample-database-quickstart.md).
148
+
Yes, you can restore [automated backups](recovery-using-backups.md) from other SQL managed instances, or you can [Restore an on-premises database backup by using SQL Server Management Studio (SSMS)](restore-sample-database-quickstart.md) or by running a `RESTORE DATABASE` command and targeting `.bak` files from Azure storage or S3 buckets.
153
149
154
150
- question: Does the free Azure SQL Managed Instance offer provide a production-quality instance?
155
151
answer: |
156
152
Despite the resource limitations, the free SQL Managed is designed to let you test your workloads without any impact. The performance you experience while using the free SQL Managed Instance is identical to the performance of a production version of the instance.
157
153
158
154
- question: Can I upgrade to a larger or more powerful instance?
159
155
answer: |
160
-
The free SQL Managed Instance offers 4 and 8 vCore options. If your business requires an instance with more resources, create a fully fledged paid SQL Managed Instance.
156
+
The free SQL Managed Instance offers only 4 and 8 vCore options. If your business requires an instance with more resources, consider upgrading it to a fully fledged paid SQL Managed Instance.
161
157
162
158
- question: Can I change the backup option to geo-redundant storage?
163
159
answer: |
164
-
Backup options can't be changed for the free SQL Managed Instance.
165
-
166
-
- question: Can I use my Student subscription with the free Azure SQL Managed Instance?
167
-
answer: |
168
-
Currently, the Student subscription is ineligible. For eligible subscriptions, review the [free SQL Managed Instance offer supportability](free-offer.md#supportability).
160
+
Free SQL Managed Instance only supports PITR up to 7 days. Other backup options can't be modified for the free SQL Managed Instance.
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/connect-to-the-database-engine-using-extended-protection.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,14 @@ The following links provide more information about how Windows supports **Extend
58
58
-[Integrated Windows Authentication with Extended Protection](/previous-versions/visualstudio/visual-studio-2008/dd639324(v=vs.90))
59
59
-[Microsoft Security Advisory (973811), Extended Protection for Authentication](/security-updates/SecurityAdvisories/2009/973811)
60
60
61
+
### Driver support
62
+
63
+
The only drivers that support Extended Protection are Windows-based
64
+
- Microsoft ODBC Driver for SQL Server (on Windows only)
65
+
- Microsoft OLE DB Driver for SQL Server
66
+
- System.Data.SqlClient (in .NET Framework on Windows)
67
+
- Microsoft.Data.SqlClient (on Windows)
68
+
61
69
## Settings
62
70
63
71
There are three SQL Server connection settings that affect service binding and channel binding. The settings can be configured using the SQL Server Configuration Manager or WMI and viewed using the **Server Protocol Settings** facet of Policy Based Management.
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/sql-server-express-localdb.md
+52-11Lines changed: 52 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: SQL Server Express LocalDB
3
3
description: Become familiar with SQL Server Express LocalDB. Developers can use this lightweight Database Engine for writing and testing Transact-SQL code.
4
4
author: rwestMSFT
5
5
ms.author: randolphwest
6
-
ms.date: 11/18/2025
6
+
ms.date: 03/23/2026
7
7
ms.service: sql
8
8
ms.subservice: configuration
9
9
ms.topic: concept-article
@@ -15,6 +15,7 @@ helpviewer_keywords:
15
15
- "local database runtime"
16
16
- "file database"
17
17
- "LocalDB"
18
+
ai-usage: ai-assisted
18
19
---
19
20
20
21
# SQL Server Express LocalDB
@@ -23,18 +24,17 @@ helpviewer_keywords:
23
24
24
25
Microsoft SQL Server Express LocalDB is a feature of [!INCLUDE [ssexpress-md](../../includes/ssexpress-md.md)] targeted to developers. It's available on SQL Server Express edition with Advanced Services. In [!INCLUDE [sssql25-md](../../includes/sssql25-md.md)] and later versions, it's available on [!INCLUDE [ssnoversion-md](../../includes/ssnoversion-md.md)] Express edition.
25
26
26
-
LocalDB installation copies a minimal set of files necessary to start the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)]. Once LocalDB is installed, you can initiate a connection using a special connection string. When you connect, the necessary [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] infrastructure is automatically created and started, enabling the application to use the database without complex configuration tasks. Developer Tools can provide developers with a [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)] that lets them write and test [!INCLUDE [tsql](../../includes/tsql-md.md)] code without having to manage a full server instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)].
27
+
LocalDB installation copies a minimal set of files necessary to start the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)]. After LocalDB is installed, you can initiate a connection using a special connection string. When you connect, the necessary [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] infrastructure is automatically created and started, enabling the application to use the database without complex configuration tasks. Developer Tools can provide developers with a [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)] that lets them write and test [!INCLUDE [tsql](../../includes/tsql-md.md)] code without having to manage a full server instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)].
27
28
28
29
## Installation media
29
30
30
31
LocalDB is a feature you select during SQL Server Express installation, and is available when you download the media. If you download the media, either choose **Express Advanced** or the **LocalDB** package.
31
32
33
+
-[SQL Server 2025 Express edition](https://go.microsoft.com/fwlink/?linkid=2216019)
32
34
-[SQL Server 2022 Express edition](https://go.microsoft.com/fwlink/?linkid=2215160)
33
-
-[SQL Server 2019 Express edition](https://go.microsoft.com/fwlink/?LinkID=866658)
34
-
-[SQL Server 2017 Express edition](https://go.microsoft.com/fwlink/?LinkID=853017)
35
-
-[SQL Server 2016 Express edition](https://go.microsoft.com/fwlink/?LinkID=799012)
36
-
37
-
Customers using Visual Studio 2019 and Visual Studio 2022 should install SQL Server 2019 Express edition.
35
+
-[SQL Server 2019 Express edition](https://go.microsoft.com/fwlink/?linkid=866658)
36
+
-[SQL Server 2017 Express edition](https://go.microsoft.com/fwlink/?linkid=853017)
37
+
-[SQL Server 2016 Express edition](https://go.microsoft.com/fwlink/?linkid=799012)
38
38
39
39
The LocalDB installer `SqlLocalDB.msi` is available in the installation media for all editions except for Express Core. It's located in the `<installation_media_root>\<LCID>_ENU_LP\x64\Setup\x64` folder. LCID is a locale identifier or language code. For example, an LCID value of 1033 refers to the `en-US` locale.
40
40
@@ -50,7 +50,7 @@ An instance of [!INCLUDE [ssExpress](../../includes/ssexpress-md.md)] LocalDB is
50
50
51
51
## Description
52
52
53
-
The LocalDB setup program uses the `SqlLocalDB.msi` program to install the necessary files on the computer. Once installed, LocalDB is an instance of [!INCLUDE [ssExpress](../../includes/ssexpress-md.md)] that can create and open [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] databases. The system database files for the database are stored in the local `AppData` path, which is normally hidden. For example, `C:\Users\<user>\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\LocalDBApp1\`. User database files are stored where the user designates, typically somewhere in the `C:\Users\<user>\Documents\` folder.
53
+
The LocalDB setup program uses the `SqlLocalDB.msi` program to install the necessary files on the computer. After it's installed, LocalDB is an instance of [!INCLUDE [ssExpress](../../includes/ssexpress-md.md)] that can create and open [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] databases. The system database files for the database are stored in the local `AppData` path, which is normally hidden. For example, `%LOCALAPPDATA%\Microsoft\Microsoft SQL Server Local DB\Instances\LocalDBApp1\`. User database files are stored where the user designates, typically somewhere in the `%LOCALAPPDATA%\Microsoft\Microsoft SQL Server Local DB\Instances\<InstanceName>` folder.
54
54
55
55
For more information about including LocalDB in an application, see [!INCLUDE [vsprvs](../../includes/vsprvs-md.md)][Local Data Overview](/previous-versions/visualstudio/visual-studio-2012/ms233817(v=vs.110)), [Create a database and add tables in Visual Studio](/visualstudio/data-tools/create-a-sql-database-by-using-a-designer).
56
56
@@ -88,7 +88,7 @@ Named instances of LocalDB are private. They're owned by a single application th
88
88
89
89
To support scenarios where multiple users of the computer need to connect to a single instance of LocalDB, LocalDB supports instance sharing. An instance owner can choose to allow the other users on the computer to connect the instance. Both automatic and named instances of LocalDB can be shared. To share an instance of LocalDB, a user selects a shared name (alias) for it. Because the shared name is visible to all users of the computer, this shared name must be unique on the computer. The shared name for an instance of LocalDB has the same format as the named instance of LocalDB.
90
90
91
-
Only an administrator on the computer can create a shared instance of LocalDB. A shared instance of LocalDB can be unshared by an administrator or by the owner of the shared instance of LocalDB. To share and unshared an instance of LocalDB, use the `LocalDBShareInstance` and `LocalDBUnShareInstance` methods of the LocalDB API, or the share and unshared options of the `SqlLocalDB` utility.
91
+
Only an administrator on the computer can create a shared instance of LocalDB. A shared instance of LocalDB can be unshared by an administrator or by the owner of the shared instance of LocalDB. To share and unshare an instance of LocalDB, use the `LocalDBShareInstance` and `LocalDBUnShareInstance` methods of the LocalDB API, or the share and unshare options of the `SqlLocalDB` utility.
92
92
93
93
## Start LocalDB and connect to LocalDB
94
94
@@ -136,13 +136,54 @@ To connect to a shared instance of LocalDB, add `\.\` (backslash + dot + backsla
136
136
137
137
## Troubleshoot
138
138
139
-
For information about troubleshooting LocalDB, see [Known SQL Server 2012 setup and migration issues](/troubleshoot/sql/database-engine/install/windows/sql-server-2012-setup-issues).
139
+
LocalDB runs as a lightweight instance under the current user's context, which means most problems relate to instance state, file permissions, or version mismatches rather than server-level configuration. The following steps can help you diagnose and resolve the most common LocalDB problems.
140
+
141
+
### Upgrade to the latest version
142
+
143
+
Many common LocalDB problems are resolved by upgrading to the latest version of SQL Server Express. Download the latest version from the [Installation media](#installation-media) section, and install LocalDB. The newer version replaces the existing LocalDB binaries and includes fixes for known stability and compatibility problems.
144
+
145
+
After upgrading, delete and re-create your instances to use the updated binaries:
146
+
147
+
```cmd
148
+
sqllocaldb stop MSSQLLocalDB
149
+
sqllocaldb delete MSSQLLocalDB
150
+
sqllocaldb create MSSQLLocalDB
151
+
sqllocaldb start MSSQLLocalDB
152
+
```
153
+
154
+
> [!CAUTION]
155
+
> Deleting an instance removes all databases associated with that instance. Back up any important data before you delete.
156
+
157
+
### Verify the installation and instance status
158
+
159
+
Run the following commands to confirm LocalDB is installed and check the state of your instance:
160
+
161
+
```cmd
162
+
sqllocaldb info
163
+
sqllocaldb info MSSQLLocalDB
164
+
```
165
+
166
+
The first command lists all instances. The second command shows the version, owner, and state (Running or Stopped) of a specific instance. If `sqllocaldb` isn't recognized, LocalDB might not be installed or the installation path isn't in the system `PATH` variable.
167
+
168
+
To start an instance that isn't running:
169
+
170
+
```cmd
171
+
sqllocaldb start MSSQLLocalDB
172
+
```
173
+
174
+
### Review error logs
175
+
176
+
LocalDB writes error logs to the user's `AppData` folder:
177
+
178
+
`%LOCALAPPDATA%\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB\error.log`
179
+
180
+
Open this file in a text editor to check for specific error messages, startup failures, or configuration problems.
140
181
141
182
## Permissions
142
183
143
184
An instance of SQL Server Express LocalDB is an instance created by a user for their use. Any user on the computer can create a database using an instance of LocalDB, store files under their user profile, and run the process under their credentials. By default, access to the instance of LocalDB is limited to its owner. The data contained in the LocalDB is protected by file system access to the database files. If user database files are stored in a shared location, the database can be opened by anyone with file system access to that location, by using an instance of LocalDB that they own. If the database files are in a protected location, such as the users data folder, only that user, and any administrators with access to that folder, can open the database. The LocalDB files can only be opened by one instance of LocalDB at a time.
144
185
145
-
LocalDB always runs under the user's security context. LocalDB never runs with credentials from the local Administrator's group. This means that all database files used by a LocalDB instance must be accessible using the owning user's Windows account, without considering membership in the local Administrators group.
186
+
LocalDB always runs under the user's security context. LocalDB never runs with credentials from the local Administrators group. This means that all database files used by a LocalDB instance must be accessible using the owning user's Windows account, without considering membership in the local Administrators group.
0 commit comments