I installed Microsoft SQL Server 2008.
When I start SQL Server Management Studio (SSMS), I get the Connect to Server
login window with a blank textbox f
As mentioned by @Khaneddy2013, the cmd SQLCMD -L returns no server name when I run. Bcz I only have installed the SSMS (local db and server were not installed). After tried installing SqlLocaLDB and SQLEXPR32_x86_ENU(32 bit OS) I was able to connect. And now the cmd window shows the server names too.
Step1: Ensure SQLEXPRESS and LocalDB installed on your system Go to SQL SERVER Configuration Manager => SQL Server Service
If nothing listed for SQL Server services, install below components (for 64 bit OS) 1. SqlLocalDB 2. SQLEXPR_x64_ENU 3. SQLEXPRADV_x64_ENU 4. SQLEXPRWT_x64_ENU
Step2: Open Management Studios Enter . (Dot) as server name and click on Connect [enter image description here][2] Else Enter .\SQLEXPRESS as server name and click on connect
given the following examples
here are your possible servernames:
simply type .\sqlexpress as the Server Name
start -> CMD -> (Write comand) SQLCMD -L first line is Server name if Server name is (local) Server name is : YourPcName\SQLEXPRESS
the default server name is your computer name, but you can use "." (Dot) instead of local server name.
another thing you should consider is maybe you installed sql server express edition. in this case you must enter ".\sqlexpress" as server name.