Thus we will get all the token and it's types.We can further write custom rules to validate from the tokens.The reault is as under

Conclusion

In this article we have seen of parsing SQL Script using TSQL100 parser. Any developer interested in building a rule engine can start from this article.Hope this will be helpful.Thanks for reading.Zipped file is attached.