示例#1
0
        public static List <CreateIndexStatement> GetCreateIndex(string script)
        {
            var parser = new TSql130Parser(false);

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

            var visitor = new IndexVisitor();

            s.Accept(visitor);

            return(visitor.Statements);
        }
示例#2
0
        public static List<CreateIndexStatement> GetCreateIndex(string script)
        {
            var parser = new TSql130Parser(false);

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

            var visitor = new IndexVisitor();

            s.Accept(visitor);

            return visitor.Statements;
        }