问题
I'm trying to connect to LocalDB in Visual Studio 2015. I have LocalDB installed, but when I attempt to connect to (localdb)\MSSQLLocalDB
it states that it isn't even there. Can anyone assist? I can't even find it in SSMS 2014.
Update:
Error message that I receive:
回答1:
I am using Visual Studio Community 2015.
- Tools > Connect to Database
- Choose Microsoft SQL Server
- Data Provider will be .NET Framework Data Provider for SQL Server
- Continue
- Server name should be (localdb)\MSSQLLocalDB
- Click on Test Connection. You should receive Test connection succeeded.
That should do it for you.
来源:https://stackoverflow.com/questions/34303211/unable-to-connect-to-localdb