I have sql express on my local network computer, I created new account, I enabled server auth, and when I am trying to connect to this account from local machine, everything works fine. But when I try to log in from a network pc, it says that login failed for this account. Also, I have disabled all the firewalls.
What else do I need to do?
A fresh install of SQL Server Express will not be functional. You must take additional, manual, steps to complete the installation.
Enable TCP/IP.
By default SQL Server will not be a functional server. For that you need to make it a server by enabling network protocols.
Click Start, SQL Server Configuration Manager. Under SQL Server Network Configuration, Protocols for MSSQLSERVER you can see that tcp/ip is disabled:
Right click TCP/IP and select Enable. Then you will need to restart the SQL Server service (or reboot the machine if you don't have permission).
Enable TCP/IP.
By enabling TCP/IP you should be able to connect to the server remotely on port
1433
. Unfortunately the Sql Server Configuration Manager does not do everything that is required to enable TCP/IP; it doesn't enable port 1433 on the firewall.Click Start, Windows Firewall with Advanced Security. Right click Inbound Rules, and click New Rule.
Select This Program, browse to the path to
sqlservr.exe
, e.g.C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
and click Next.
select Allow this connection, and click Next
The Windows firewall may, or may not, start allowing connections to an existing listening socket. You may, or may not, have to start the SQL Server service (or reboot the machine if you don't have permission).
Enable Named Pipes
The above steps didn't work for me, because SQL Server Management doesn't know how to connect over TCP/IP. You must also try enabling named pipes.
Click Start, SQL Server Configuration Manager. Under SQL Server Network Configuration, Protocols for MSSQLSERVER you can see that Named Pipes is disabled:
Right click Named Pipes and select Enable. Then you will need to restart the SQL Server service (or reboot the machine if you don't have permission).
I have installed normal instance of sql server (not express), everything works fine on this new instance...
The tricks are as follows:
There will be lines in there "listening on..." e.g. Server is listening on [ 'any' 1129].
servername,1129
or by ip
192.168.66.101,1129 // assuming server is on that ip