i want to parse the SQL code using C#.
Specifically is there any parser freely available which can parse the SQL code and generate a tree or any other structure out of it? it should also generate proper tree for nested structures.
As well as it should return to me which kind of statement the node of this tree represents.
e.g. if the node contains loop condition then it should return to me that this is a "loop type" of a node.
Or is there any way by which i can parse the code in C# and generate a tree of the type i want?
Thanks