Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LocalDB SQL Server 2014 Express creates 2 instances (localdb)\ProjectsV12 & (localdb)\MSSQLLocalDB?

I'm using SQL Server 2014 Express and the LocalDB option, and I have the following in my SQL Server object explorer pane in Visual Studio 2013...

enter image description here

So what is the difference between (localdb)\ProjectsV12 & (localdb)\MSSQLLocalDB?

like image 741
Ramy Yousef Avatar asked Nov 28 '14 23:11

Ramy Yousef


People also ask

What is LocalDB instance?

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.

How do I connect to my LocalDB instance?

You can connect with MSSMS to LocalDB. Type only in SERVER NAME: (localdb)\v11. 0 and leave it by Windows Authentication and it connects to your LocalDB server and shows you the databases in it.


1 Answers

The (localdb)\ProjectsV12 and (localdb)\ProjectsV13 instances are created by SQL Server Data Tools (SSDT) and should not be used by applications

(localdb)\MSSQLLocalDB is the SQL Server Express 2014/2016 LocalDB default instance name and an "automatic instance".

You can use the sqllocaldb.exe command line tool to manage which version (2014 or 2016) owns the MSSqlLocaldb instance

And (localdb)\v11.0 is the SQL Server 2012 LocalDB default instance name

like image 169
ErikEJ Avatar answered Oct 12 '22 20:10

ErikEJ