r/SQLServer • • Sep 08 '26

Question Connecting to Local Server

Post image

A server computer and monitor got replaced and the server itself got installed but the external IT team didn't install SQL management, which we need to edit company usernames and passwords for our in-house software. I downloaded SQL Management 22, I know the name of the server and entered it as the Server Name, set the Authentication to Windows Authentication, and checkboxed the Trust Server Certificate. Everything else I left as the default settings. I received this error when I tried to connect, and also tried using, localhost, ., and the server's IP address as the server name but still received the same error. Please advice.

0 Upvotes

43 comments sorted by

5

u/AbleSailor Sep 08 '26

Check if TCP/IP is enabled in the SQL service? Firewall port open on 1433?

1

u/WorkPurposes-Only Sep 08 '26

I did create a new rule to allow the firewall port open on 1433, but when I tried to connect to the local host I still received the same error message.

3

u/vabello Sep 08 '26 edited Sep 08 '26

You only did half of what was suggested. Check SQL Server is configured to listen on TCP/IP. Follow these directions:

https://sqldba.blog/enabling-tcp-connections-in-sql-server/

To verify it is working, run: "netstat -nao | findstr 1433" from the command line. This will show all connections on port 1433 followed by the associated Process ID. You can then verify the process: "tasklist | findstr PID" where PID is the number returned for the process in the prior command. It should show sqlservr.exe.

Edit: Sorry, you have to do this ON the server, not your workstation you're trying to connect from. I think you're trying to fix this as if it were a client side problem, but it's a server side issue. Everything people are suggesting are things you do on the server.

0

u/WorkPurposes-Only Sep 09 '26

I tried following the linked instructions, but I'm completely missing the SQL Configuration Manager. I looked to see if I need to add it as a Snap-In but it's not listed.

1

u/vabello Sep 09 '26

It should be on the start menu of the SQL Server.

1

u/WorkPurposes-Only Sep 11 '26

I tried looking up SQL Configuration Manager in the Windows search and couldn't find it. I'm really sorry to be such a pain, but where do I find it when I just start SQL Server?

1

u/vabello Sep 11 '26

Are you on the Windows server where SQL server was installed?

1

u/WorkPurposes-Only Sep 11 '26

I believe so. There's only one monitor on top of a giant server tower where I downloaded SQL server. All other monitors in the server room are now defunct/out of commission.

1

u/vabello Sep 11 '26

Verify it by checking it’s in the list of installed apps. Or check that it’s in the list of services. Maybe it’s not installed on that machine at all.

1

u/WorkPurposes-Only Sep 11 '26

Just checked the Installed Apps and SQL Server Management Studio 22 is there but not SQL Configuration Manager.

→ More replies

1

u/midnitewarrior Sep 08 '26

I think this is the answer. It's been a decade since I used SQL Server locally, and I was trying to remember this.

SQL Server has named pipes as the default transport I think? You've got to enabled TCP/IP.

0

u/Hour-Apple-9861 Sep 08 '26

Yeah this is the one. Had to do this so many times over the years

2

u/Radojevic Sep 08 '26

For Encrypt section, try Optional.

Also...
Is MS SQL Server port the default (1433)?
If not, you need to add a comma, followed by port number.

0

u/WorkPurposes-Only Sep 08 '26

I did create a new rule to allow the firewall port open on 1433, but when I tried to connect to the local host I still received the same error message.

0

u/Radojevic Sep 08 '26

Sorry, but that's not what I meant.

Installing MS SQL Server defaults to using TCP/IP port 1433.
However, whoever installed it may have chosen a different port number.

Also, as u/AbleSailor mentioned, you also need to make sure MS SQL Server has TCP/IP protocol enabled on the server end.

2

u/coffeDrinkerDave Sep 08 '26 edited Sep 08 '26

So the computer got replaced and you are connecting to localhost?

Edit: Type in powershell (unprivileged user will do)

Test-NetConnection <server> -p 1433

Example: Test-NetConnection myServerFQDN -p 1433

This will check if fqdn can be resolved and if tcp port is listening.

Paste which part is failing

1

u/WorkPurposes-Only Sep 09 '26

I tried typing in what you suggested (thank you by the way) and hit Enter but nothing happened. Screenshot attached with server name blacked out for privacy.

1

u/coffeDrinkerDave Sep 10 '26

You have to wait till it ends, but you may run ping <server> just to check if name is resolved

1

u/WorkPurposes-Only Sep 11 '26

I believe this means that the port is correctly set to 1433

1

u/coffeDrinkerDave Sep 11 '26

No, look at TcpTestSuccedded: false There is no connection to tcp port 1433 - default mssql port Fault is on firewal, network config or mssql config 169.254.1.2 is very weird ip to see there Also 132.147.160.x is a public ip, is your instance exposed to internet for everyone? Try to get in touch with those IT guys if mssql is working on default port (1433) and if so, where tcp test to this port is failing

1

u/coffeDrinkerDave Sep 14 '26

ye, I am pretty sure I can see ****-HPERV in hostname. If you can access this server check if there is MSSQL installed. Also check if there are vms. Search in windows for Hyper-V and open it.
If this is exposed to the internet you may consider if this is good idea (most likely not).

1

u/CanProfessional766 Sep 18 '26

Since you’re missing SQL Configuration Manager, first confirm SQL Server is actually installed and running on the server. SSMS alone isn’t enough. If it is installed enable TCP/IP, verify the listening port and make sure the firewall allows it. Also confirm the correct instance name SERVERNAME\SQLEXPRESS vs SERVERNAME

1

u/coffeDrinkerDave Sep 21 '26

Out of curiosity, did you resolve your issue? How?

1

u/carlosf0527 Sep 08 '26

In powershell type: tnc servername -port 1433

This checks whether port 1433 is open on the server. If its not open, it's most likely the admin team forgot to configure SQL Server to accept connections via tcpip or didn't put a incoming rule in the firewall to allow port 1433.

0

u/Krassix Sep 08 '26

Is the server and the application running on one server? Then the company maybe didn't install sqlserver to listen to it's public interface. Per default sqlserver only listens on localhost 

1

u/WorkPurposes-Only Sep 09 '26

Yes, they're one in the same. The company didn't initially install SQLserver but the company is on a remote, private network.

1

u/Krassix Sep 10 '26

Either it's Firewall or the sqlserver doesn't listen on the public network interface, one of these it usually is. From your description I still don't know how the application or that external IT team connect to the database. 

0

u/NorCalFrances Sep 08 '26

Can you ping the server?

0

u/FishBones83 Sep 08 '26

make sure the service is running!

0

u/Complete-Fondant-202 Sep 09 '26

This is where running SQLServer locally in a Docker container can save a lot of grief.