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

1

67

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?

Cassiani answered 28/11, 2014 at 23:53 Comment(0)
N
91

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

Nostomania answered 29/11, 2014 at 10:42 Comment(7)
Which one you should use for your local development db?Robyn
One of the two last ones on the listNostomania
Is there a reason to not use ProjectsV12?Robyn
It is not a deafault instanceNostomania
SSDT use ProjectsV12 instance for deploying database projects. This instance even might not exist if SSDT is not installed. Thus, using this instance name in connection strings is not recommended.Ethyne
This looks big mess to me created by MS. It is always misleading to me. I hope they make it clear and conciseRestrain
Follow-up questions on the purpose of the private instanceSaucedo

© 2022 - 2024 — McMap. All rights reserved.