Tag: SQL Server Networking
-
Troubleshooting Database Mirroring Issues in SQL Server
Database Mirroring is deprecated, but you will still see it in many production environments. It was officially marked deprecated in SQL Server 2012 and has remained in that state for well over a decade. In my own career as a DBA, it has been “deprecated” the entire time, yet still widely deployed and fully supported.…
Written by
-
How to Get the SQL Server IP Address
The IP address and port SQL Server answered on are local_net_address and local_tcp_port in sys.dm_exec_connections. The firewall team, or a vendor, wants that exact pair before they will open an allow-list rule, and the server has more than one address: do not read it off ipconfig and do not assume 1433. ⚡On a TCP connection,…
Written by
-
Check SQL Server Connection Encryption and Protocol
Modern SQL Server environments often use encrypted connections by default, but that does not always mean what people think it means. When troubleshooting connectivity problems, certificate errors, performance questions, or unexpected client behaviour, DBAs usually need to answer one very specific question: What protocol and encryption is this connection actually using right now? This post…
Written by
-
sqlcmd Examples for SQL Server
No SSMS on the box, or SSMS will not connect, and you need to run a query or a script file from a shell right now. sqlcmd does that from Command Prompt, PowerShell or a Linux shell. On any current install it also refuses the first connection with a certificate error until you add -C,…
Written by
-
SSMS Certificate Chain Not Trusted Error (Trust Server Certificate Fix)
SSL Provider · error: 0 A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 – The certificate chain was issued by an authority that is not trusted.) ⚡Tick Trust server certificate and connect. In the SSMS Connect dialog it sits under Encryption…
Written by
-
SQL Server Default Ports
Something cannot connect, or the firewall team wants a port number before they will open anything. Both questions have the same answer, and it is not a guess: ask the instance what it is listening on. TCP 1433 is right on a default instance nobody has touched, and it stops being right as soon as…
Written by
-
Enabling TCP Connections in SQL Server
A remote client cannot connect and the instance is running. The application reports Named Pipes Provider, error: 40 or SQL Network Interfaces, error: 26, and the first thing to rule out is the server not listening on TCP/IP at all. ⚡TCP/IP is a server setting that only takes effect when the SQL Server service restarts.…
Written by
-
Testing Remote Server Port Connectivity with PowerShell
An application cannot connect to SQL Server, and before anyone goes near a configuration file there is one question to settle: is the port reachable from this server, or is something in the path blocking it? ⚡The short version. Run Test-NetConnection -ComputerName -Port 1433. TcpTestSucceeded : True and the port is open from here, so…
Written by
-
How to Check Listening Ports on Windows
An application cannot connect, and before you look at firewalls, DNS or logins you need one fact: is SQL Server listening on this machine, and on which port? Ask Windows which ports the sqlservr process holds, then ask SQL Server which port it bound at startup. If the two agree and the client still fails,…
Written by
- Tune a Slow Query With Copilot in SSMS
- xp_readerrorlog: Read the SQL Server Error Log with T-SQL
- Cannot Drop Database Because It Is Currently in Use (Error 3702)
- Could Not Drop Login Because the User Is Currently Logged In (Error 15434)
- Set a Maximum Database File Size in SQL Server (MAXSIZE)
- SQL Server Activity Monitor in SSMS (and the Performance Dashboard)
- Backups & Recovery (18)
- DBA Scripts (154)
- High Availability (HA) (13)
- Installation & Configuration (60)
- Maintenance (25)
- Migration & Upgrades (14)
- Monitoring (10)
- Performance Tuning (38)
- Security (Encryption & Permissions) (25)
- Storage & Capacity (18)
- T-SQL Fundamentals (17)
- Troubleshooting (108)
- Wait Types (236)