Click or drag to resize

SA0074B : Check all Schema-s for following specified naming convention. (Batch)

The topic describes the SA0074B analysis rule.

Message

Check all Schema-s for following specified naming convention. (Batch)

Description

The rule checks the schema name in CREATE SCHEMA statements.

The NamePattern variable can be used to select or configure the desired pattern which will be used to check the object name.

Regular expression patterns can be used, but the pattern must be prefixed with 'regexp:' string in order to be used as a matching regular expression.

Scope

The rule has a Batch scope and is applied only on the SQL script.

Parameters
NameDescriptionDefault Value
NamePattern

Deault constraint name pattern.

regexp:[A-Z][A-Za-z]+

Remarks

The rule does not need Analysis Context or SQL Connection.

Categories

Naming Rules, New Rules

Additional Information

There is no additional info for this rule.

Example Test Script
1CREATE SCHEMA Sprockets AUTHORIZATION Annik  
2    CREATE TABLE NineProngs (source int, cost int, partnumber int)  
3    GRANT SELECT ON SCHEMA::Sprockets TO Mandar  
4    DENY SELECT ON SCHEMA::Sprockets TO Prasanna;  
5
6ALTER SCHEMA Sprockets TRANSFER Person.Address;

Analysis Results

No violations found.

See Also

Other Resources