Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have just installed SQL Server 2017 Express LocalDB recently. But when i try to connect to it using SSMS, it prompt me "Cannot connect to (LocalDB)\." error. I have tried to search for the localDB installed in control panel's programs and features and it is there. Anything i missed?

Thank you.

What I have tried:

1. Reinstall LocalDB but to no avail.
Posted
Updated 25-Apr-18 5:48am

1 solution

You need to use the SqlLocalDB Utility[^] to create and start a LocalDB instance before you can connect to it.
 
Share this answer
 
v2
Comments
Jamie888 25-Apr-18 22:01pm    
Sir, i still not quite understand about this localDB. I checked my control panal and an instance of Microsoft SQL Server 2017 LocalDB is there but when i try to connect to it using SSMS 2017 by entering Server name as (LocalDB)\. or (LocalDB)\MSSQLLOCALDB, it fails with the above error.
Jamie888 25-Apr-18 23:26pm    
Sir, i have execute the command line using cmd but to no avail. I tried sqllocaldb create "SampleInstance" v14.0 -s. But i get and error straight after hitting enter saying i do not have version 14 component installed. Checked control panel and indeed it is there.
Jamie888 26-Apr-18 2:04am    
Sorry, turns out to be my Windows OS not supported for SQL Server 2017 Express LocalDB. Although it is installed, but due to my laptop have only Windows 7, it is insufficient to actually execute the component inside. Please do correct me if i got the understanding wrong.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900