public override void Visit(TSqlScript node) { var childNoCountVisitor = new ChildNoCountVisitor(); node.AcceptChildren(childNoCountVisitor); if (childNoCountVisitor.NoCountIsOn) { return; } // walk child nodes to determine if rowset operations are occurring var childRowsetVisitor = new ChildRowsetVisitor(); node.AcceptChildren(childRowsetVisitor); // walk child nodes to determine if DDL operations are occurring var childDDLStatementFoundVisitor = new ChildDDLStatementFoundVisitor(); node.AcceptChildren(childDDLStatementFoundVisitor); if (childDDLStatementFoundVisitor.DDLStatementFound && !childRowsetVisitor.RowsetActionFound) { return; } errorCallback(RULE_NAME, RULE_TEXT, node.StartLine, node.StartColumn); }
public override void Visit(TSqlScript node) { var childAnsiNullsVisitor = new ChildAnsiNullsVisitor(); node.AcceptChildren(childAnsiNullsVisitor); if (!childAnsiNullsVisitor.SetAnsiNullsFound && !ErrorLogged) { ErrorCallback(RULE_NAME, RULE_TEXT, node.StartLine, node.StartColumn); ErrorLogged = true; } }
public override void Visit(TSqlScript node) { var childTransactionIsolationLevelVisitor = new ChildTransactionIsolationLevelVisitor(); node.AcceptChildren(childTransactionIsolationLevelVisitor); if (!childTransactionIsolationLevelVisitor.TransactionIsolationLevelFound && !ErrorLogged) { ErrorCallback(RULE_NAME, RULE_TEXT, node.StartLine, node.StartColumn); ErrorLogged = true; } }
public override void Visit(TSqlScript node) { var childQuotedidentifierVisitor = new ChildQuotedidentifierVisitor(); node.AcceptChildren(childQuotedidentifierVisitor); if (!childQuotedidentifierVisitor.QuotedIdentifierFound && !ErrorLogged) { ErrorCallback(RULE_NAME, RULE_TEXT, node.StartLine, node.StartColumn); ErrorLogged = true; } }