Other Sybase Standard and Guidelines
Filed in Sybase on May.14, 2009
Rule
- Where possible, areas of common processing must be implemented by procedures. Note: Maximize re-use of pre-parsed statements.
- For triggers of any complexity the detailed logic must be coded in procedures which are invoked from within the trigger body.
- Object names must not be qualified with the owner name. Note: The statement cannot be run in another schema if the owner is specified.
- Whenever an explicit insert statement is used, the list of columns into which data is being inserted must be specified. Note: Insert statements must take the form INSERT INTO table (col1, col2) VALUES (val1,val2).
- SELECT * FROM table_name should be avoided. You must explicitly name the columns being selected.
- Transact SQL variables holding values for a particular column should be named @<column_name>.
- Stored procedure parameters should be named @p_<parameter name>.
- A variable/parameter domain should be evident from the name.


Leave a Reply