I am using localDB 2012 to do CRUD operations on a Db. I want the DB to be shared across the users on the system. Hence I have done the following.
`
sqllocaldb.exe create myinstance
sqllocaldb.exe share myinstance myinstance.shared
sqllocaldb.exe start myinstance
... added SQL admin user to the instance to access from all the users
`
I have put this stuff in the installer of the application which uses the NT AUTHORITY\ADMIN account to do that.
Then connected from my application to local db using entity framework, and the shared instance path
`(localDb)\.\myinstance.shared; with attached file; and new SQL admin credentials`
This connection does work initially for a while and strangely after some time it stops working! This has happened on 3 PCs, so it is a repeatable scenario.
I am getting a following messages: localdb named pipes provider could not open the connection Connection could not be established.
If anyone has encountered this issue / knows about it, please help.