I have been trying in vain to connect to my SQL Server database, attached to the LocalDB instance (localdb)\v11.0
, using HeidiSql and Windows Authentication.
My testing has shown that HeidiSql can connect to the permanently installed MSSQLSERVER
and SQLEXPRESS
instances as follows:
MSSQLSERVER
:
- SQL Server: (named pipe)
- Hostname / IP: .
- Use Windows Authentication
SQLEXPRESS
:
- SQL Server: (named pipe)
- Hostname / IP .\SQLEXPRESS
- Use Windows Authentication
The LocalDB connection proves elusive.
My reading of the situation suggests that the LocalDB instance is something of a phantom created by Visual Studio and SQL Server Management Studio as and when required. They don't persist or exist when these programs aren't running. When they are running access is buried in these programs and not available to other applications.
I know I can switch to MSSQLSERVER
or SQLEXPRESS
as the standard database server for my Visual Studio applications but am interested to know whether there is a pathway for connecting to HeidiSql the LocalDB instance.
LocalDB
is a variant of SQL Server Express that is loaded on demand when an application needs it. So yes - it might be a bit "elusive" - however, there's thesqllocaldb
utility that allows you to spin upLocalDB
instances as needed, and then they stay active until you shut them down again. Google forsqllocaldb
and read how to use it! – Kilometer