This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
htmltags

SQL SERVER – Stripping HTML Tags from Text

September 21, 2023
Pinal Dave
SQL Tips and Tricks
HTML, SQL Function

In this blog post, we’ll explore a method for stripping these HTML tags from your text data using SQL Server. Let us explore the post.

Read More
Gouache painting of a row of deck chairs alternating cream and slate blue with one vermilion chair

Alternate Row Colors in an HTML Table Using T-SQL

June 25, 2018
Pinal Dave
SQL Tips and Tricks
HTML, SQL Scripts, SQL Server

To get alternate row colors in an HTML table from T-SQL, number the rows with ROW_NUMBER and pick a color by odd or even. This post builds the whole table with STRING_AGG, escapes special characters, colors one cell by value, and explains why the numbering must follow the display order.

Read More
A cannoli forming tube beside a filled pastry shell and an empty matching shell

Sending an HTML Table by Email With sp_send_dbmail

March 5, 2014
Pinal Dave
SQL Tips and Tricks
Database Mail, HTML, SQL XML

Turn a wall of report text into a clean table. FOR XML PATH escapes your data, and a few small tricks handle NULL values and empty days.

Read More
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com