If you write code to SQL Server then you might be interested in this: at the end of 2017 I wrote a tSQLt tdd training course which has helped over 300 people learn both tSQLt and how to apply TDD practices to their SQL Server T-SQL development, you can join the course at https://courses.agilesql.club. The course is free if you are happy to wait 10 weeks to complete it, with 1 lesson being made available per week - if you are in more of a hurry or you would like to help support the project you can purchase the course which makes it instantly available to you.

ScriptDomVisualizer - Now Displays TSqlParserTokens

New ScriptDom visualizer now also shows the tokens that are found in a sql script. It also highlights the part of the query that is covered by the token so it is really easy to see where you are in the script.

Honestly if you are doing anything with the T-SQL Script Dom this is really useful to help reverse engineer t-sql into ScriptDom objects :)

Grab it from:

https://github.com/GoEddie/ScriptDomVisualizer/tree/master/release

Enjoy!


Comments:

Anonymous

December 10, 2015 - 14:05

Recently I have been working

Recently I have been working on a task to split multi columns/constraint alter statement into separate statements (one alter for each column/constraint).
I couldn’t manage to convert it from string statement into DOM object so I used regexp and substrings. But if it happen to change this code again I will use your approach.

Ed Elliott

December 10, 2015 - 14:07

Cool, the more samples and

Cool, the more samples and demos we have for this sort of thing the better :)