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
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/sql-server-express-localdb.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,10 @@ LocalDB installation copies a minimal set of files necessary to start the [!INCL
31
31
32
32
- To download and install SQL Server Express LocalDB, go to **[SQL Server downloads](https://www.microsoft.com/sql-server/sql-server-downloads)**. LocalDB is a feature you select during installation, and is available when you download the media. If you download the media, either choose **Express Advanced** or the LocalDB package. In the **Visual Studio Installer**, you can install SQL Server Express LocalDB as part of the **.NET desktop development** workload or as an individual component.
33
33
34
-
>[!TIP]
35
-
> You can also install LocalDB as part of Visual Studio. During Visual Studio installation, select the **.NET desktop development** workload, which includes SQL Server Express LocalDB.
34
+
>[!TIP]
35
+
> You can also install LocalDB as part of Visual Studio. During Visual Studio installation, select the **.NET desktop development** workload, which includes SQL Server Express LocalDB.
36
36
37
-
- Have an Azure account?Then go **[here](https://azure.microsoft.com/services/virtual-machines/sql-server/)** to spin up a Virtual Machine with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] already installed.
37
+
- Have an Azure account?[Get started](https://azure.microsoft.com/services/virtual-machines/sql-server/) and spin up a virtual machine with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] already installed.
38
38
39
39
## Install LocalDB
40
40
@@ -66,7 +66,7 @@ The instance collation for LocalDB is set to `SQL_Latin1_General_CP1_CI_AS` and
66
66
67
67
- An instance of LocalDB owned by the built-in accounts such as `NT AUTHORITY\SYSTEM` can have manageability issues due to windows file system redirection. Instead use a normal windows account as the owner.
68
68
69
-
### Automatic and Named Instances
69
+
### Automatic and named instances
70
70
71
71
LocalDB supports two kinds of instances: Automatic instances and named instances.
72
72
@@ -82,7 +82,7 @@ To support scenarios where multiple users of the computer need to connect to a s
82
82
83
83
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.
84
84
85
-
## Starting LocalDB and Connecting to LocalDB
85
+
## Start LocalDB and connect to LocalDB
86
86
87
87
### Connect to the automatic instance
88
88
@@ -91,7 +91,7 @@ The easiest way to use LocalDB is to connect to the automatic instance owned by
91
91
>[!NOTE]
92
92
>The first time a user on a computer tries to connect to LocalDB, the automatic instance must be both created and started. The extra time for the instance to be created can cause the connection attempt to fail with a timeout message. When this happens, wait a few seconds to let the creation process complete, and then connect again.
93
93
94
-
### Creating and Connecting to a Named Instances
94
+
### Create and connect to a named instance
95
95
96
96
In addition to the automatic instance, LocalDB also supports named instances. Use the SqlLocalDB.exe program to create, start, and stop a named instance of LocalDB. For more information about SqlLocalDB.exe, see [SqlLocalDB Utility](../../tools/sqllocaldb-utility.md).
97
97
@@ -120,7 +120,7 @@ REM Gather information about the instance of LocalDB
120
120
>[!NOTE]
121
121
>If your application uses a version of .NET before 4.0.2 you must connect directly to the named pipe of the LocalDB. The Instance pipe name value is the named pipe that the instance of LocalDB is listening on. The portion of the Instance pipe name after LOCALDB# will change each time the instance of LocalDB is started. To connect to the instance of LocalDB by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], type the instance pipe name in the **Server name** box of the **Connect to [!INCLUDE[ssDE](../../includes/ssde-md.md)]** dialog box. From your custom program you can establish connection to the instance of LocalDB using a connection string similar to `SqlConnection conn = new SqlConnection(@"Server=np:\\.\pipe\LOCALDB#F365A78E\tsql\query");`
122
122
123
-
### Connecting to a shared instance of LocalDB
123
+
### Connect to a shared instance of LocalDB
124
124
125
125
To connect to a shared instance of LocalDB add `.\` (dot + backslash) to the connection string to reference the namespace reserved for shared instances. For example, to connect to a shared instance of LocalDB named `AppData` use a connection string such as `(localdb).AppData` as part of the connection string. A user connecting to a shared instance of LocalDB that they do not own must have a Windows Authentication or [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Authentication login.
0 commit comments