r/SQLServer • • 5d ago

Community Share Open Source Extension for SSMS 22 -> Tab Result History

This free open source SSMS 22 (I only tested in 22 / latest) extension keeps a read-only copy of each query's result sets in a dockable Results History window. Each result set gets its own tab with a close button (✕). Tabs belong to the query window they came from. They disappear when you close the tab or that query window. Nothing is written to disk.

NEW UPDATES: Now exports all history tabs to excel at once. Now Search Results. Now export as HTML in addition to pipe, csv, tab. Now view large text fields in dedicated window similar to xml on current results.
Updated Demo: https://www.youtube.com/watch?v=Cs_npK_t_Ss

This is something that is native in the Nexus Query Chameleon from Coffing which I've used over the years with TeraData, I freaking love that feature so much, I've always wanted it for SSMS, so I made an attempt and it works quite well.

Microsoft, if you're reading, go ahead and make it native in SSMS your own way please! Just give me credit for the idea.. and a free hat or something.. ha..

Full Code: https://github.com/TroBeeOne/DaffyResults

Demo Video:

https://reddit.com/link/1y9mc8p/video/7qt1f3c6vt4i1/player

4 Upvotes

1 comment sorted by

1

u/DataFracking 2d ago edited 2d ago

Version 3 I add a new button on the toolbar for bulk loading CSV and Excel files to #temp tables super fast.

So basically:

  1. Click button, dialog pops up.
  2. Drag excel file to window (or hit the file explore button)
  3. The utility detects all the sheets, detects the column types for each column, determines if it's not a valid format for import in current state for each sheet, etc.
  4. You run it, it creates a #temp table for each sheet and does a bulk insert behind the scenes into the current target connection for the query window you're on.
  5. It then gives you a new button to copy select statements for each temp table to verify if you want.