.NET Framework Developer Center > .NET Development Forums > Microsoft SQL Server Modeling > Is there a way to parse a T-SQL select statement with the M runtime?
Ask a questionAsk a question
 

AnswerIs there a way to parse a T-SQL select statement with the M runtime?

  • Tuesday, September 22, 2009 11:58 PMDarrel Miller Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Searching around the Microsoft.M assembly I found the SourceParser class and whole set of classes in the Microsoft.TSQL10 namespace that seem related to parsing SQL but I cannot find examples of how to use it.

    I know the you can generate T-SQL easily enough, but can you consume it, manipulate the data structure and re-output a modified version of the SQL select?

    Thanks,

    Darrel

Answers

All Replies