Additional SQL Server features and topics not covered by specific categories
If you have multiple queries written in the same query window, SSMS will execute all of them from top to bottom every time you click "Execute" (or press F5).
The Fix: Use your mouse to click and drag to highlight (select) only the specific query you want to run. When you click Execute, SSMS will only run that highlighted text.
If your old results are stuck on the screen and never changing, SSMS might be configured to stop sending new results to your grid.
The Fix: Go to the top menu and select Query > Query Options. Look under Results > Grid and make sure the box for "Discard results after execution" is unchecked.
Sometimes the SSMS user interface grid gets visually "stuck" and stops rendering the updated data, even though the database is processing it.
The Fix: Completely close your current query tab (save it first if you need to). Open a brand new query window (Ctrl + N), paste your modified query there, and press F5. This forces SSMS to open a fresh results grid.4. Check for uncommitted transactions (BEGIN TRAN)If you previously ran a query that started with BEGIN TRANSACTION but you never ran COMMIT, your session is locked into a temporary snapshot of the data.The Fix: Open a new query window, type ROLLBACK; and execute it. Then try running your modified query again.