Reputation: 41
Cannot find SQL Server name while connecting SQL Server Management Studio:
(Error-40 Couldn't open the connection to SQL Server)
I tried to find server name in services of Configuration tool, but I found 'No Items'
under Services.
I tried by using command prompt :
SQLCMD -L
but it will display:
Servers :
Upvotes: 4
Views: 992
Reputation: 315
Open the sql server configuration manager then click on protocols for SQLEXPRESS2 make sure that named pipes is enabled
Then you need to create alias for client side search for cliconfig.exe in system32 (open it) then create TCP/IP alias
Then go to alias tab and click add and write alias for server and write ip address for sql server and uncheck the dynamically determine port then click ok
source link: here
I hope this help..
windows services SQL Server Instances : Image Link
Upvotes: 2
Reputation: 21
Well I have an easy solution for your question. Follow the steps:
Go to SQL Server Configuration manager SQL Server Network Configuration: Protocol for MSSQLSERVER In the right pane split page you will have to disable VIA as follows Shared Memory - Enable Named Pipes - Enable TCP/IP - Enable VIA - Disable
do this and tell me whats up :)
Upvotes: 2