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); }
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; }