IIS connecting to LocalDB

You should use Shared Instances feature of LocalDB. These two posts on Using LocalDB with Full IIS should give you more information. Especially the second part seems relevant, but the first one contains some context as well. (note: the original links are no longer available, using archive.org instead) Part 1: User Profile Part 2: Instance … Read more

Unable to connect to localDB in VS2012 – “A network-related or instance-specific error occurred while establishing a connection to SQL Server…”

Any chance it is because you forgot to double-escape the backslash? Did you try this: “Data Source=(LocalDB)\\v11.0;Integrated Security=true” Or even better, you could just use the @ mark to disable character escaping for the entire connection string: @”Data Source=(LocalDB)\v11.0;Integrated Security=true”

How to connect to LocalDb

I am totally unable to connect to localdb with any tool including MSSMA, sqlcmd, etc. You would think Microsoft would document this, but I find nothing on MSDN. I have v12 and tried (localdb)\v12.0 and that didn’t work. Issuing the command sqllocaldb i MSSQLLocalDB shows that the local instance is running, but there is no … Read more

How to install localdb separately?

From MSDN The primary method of installing LocalDB is by using the SqlLocalDB.msi program. LocalDB is an option when installing any SKU of SQL Server 2012 Express. Select LocalDB on the Feature Selection page during installation of SQL Server Express. There can be only one installation of the LocalDB binary files for each major SQL … Read more

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

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 … Read more

Connecting to SQL Server LocalDB using JDBC

Yes, it is possible. The connection string for a LocalDB instance using jTDS looks like this: jdbc:jtds:sqlserver://./DatabaseName;instance=LOCALDB#88893A09;namedPipe=true This works as of jTDS 1.3.2. You can download a release here: https://github.com/milesibastos/jTDS/releases/download/v1.3.2/jtds-1.3.2-dist.zip To find the named pipe for your desired LocalDB, run SqlLocalDb info NameOfTheLocalDBInstance which will give you something like np:\\.\pipe\LOCALDB#88893A09\tsql\query It’s probably best to connect … Read more