Tag: SQL Server Management Studio (SSMS)
-
Open SSMS as a Different Domain User
⚡Shift + right-click SSMS → Run as different user, or runas /netonly /user:DOMAIN\user “path\to\Ssms.exe”. Use /netonly when the account is in another domain or is not allowed to log on to this machine. You need to connect to SQL Server as a different Windows account: to test a new AD login’s permissions, to reach an…
Written by
-
Install and Update SQL Server Management Studio (SSMS)
SQL Server Management Studio (SSMS) is the primary management tool for SQL Server and Azure SQL. What changed in recent releases is not how it looks but how it installs, updates and connects: it ships through the Visual Studio Installer, updates every 1 to 2 weeks, and applies stricter encryption defaults by design. If you…
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
-
How to Show Line Numbers in SSMS
⚡Tools → Options, search for “line numbers”, and tick Line numbers. Current SSMS has them on already. If they still do not show in query windows, the Transact-SQL language page has its own copy of the setting. Line numbers sit down the left margin of every query window in SSMS 21 and later, with nothing…
Written by
-
How to Increase Maximum Characters Displayed in SSMS
⚡Tools → Options, search for “results to text”, and raise Maximum number of characters displayed in each column. Then open a new query window. The default is 256, and output past it is cut off without a warning. By default, SQL Server Management Studio limits the number of characters displayed per column when using Results…
Written by
-
What the USE Command Does in SQL Server
The USE command changes the database context for the current session. Every statement in SQL Server runs in the context of a database. When you run USE, you are telling SQL Server which database subsequent statements should execute against until the context changes again or the session ends. That single behaviour explains a lot of…
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)