Example #1
0
        public static List<TSqlStatement> GetStatements(string script, out IList<ParseError> errors)
        {
            var parser = new TSql130Parser(false);

            //IList<ParseError> errors;
            var s = parser.Parse(new StringReader(script), out errors);

            var visitor = new StatementVisitor();

            s.Accept(visitor);

            return visitor.Statements;
        }