/SqlManagementStudio.PasteAsHtml

Convert tab-separated values, such as data copied from Excel sheet or SQL Management Studio results, to HTML or Markdown table

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

Convert SQL Server Management Studio query results to HTML table

You can use this functionality at https://sandersade.github.io/SqlManagementStudio.PasteAsHtml

Introduction

I have needed the results from SQL Server Management Studio quite often for displaying as a table - whether to display in a website or chat programs that support HTML tables. This has been a pain - save in Studio as CSV, open in Excel, save as HTML.

This projects takes the output from SQL Management Studio query results (right click --> Copy or Copy with headers) and converts the output to basic HTML table that you can style as needed, or just copy-paste as-is.

Features

  • Does not send any data to backend/server, pure HTML/CSS/JS frontend functionality
  • Supports table headers
  • Automatically encodes HTML critical entities to avoid script injection or display issues
  • Copy results either as HTML table code suitable for web pages or as HTML element for pasting into rich text clients
  • Works also with direct copy-paste from Excel

Click on image for larger screenshots

image

image

Copy-paste from Excel

image

image