Building an HTML table of contents in SQL Server

(NB. When was this ever a good idea???)

This SQL table function takes a block of html as input and returns a table containing a table of contents both linked and unlinked, and also the html with added anchors within the page.

SQL probably isn’t the best place to do this, and this might be a good thing to use CLR for but here it is in case you ever need it!

Leave a Reply

Your email address will not be published.