CMS - MS SQL Server / Sybase Reference Guide

MS SQL Server / Sybase Reference Guide

This document provides some more detailed information about the objects and links that are stored in the Analysis Service. Other technical information may also be available.

Object Types

Objects detected by the analyzer are summarized in the following table:

ObjectName
Instance
Database
Schema
Trigger
Function
Procedure
Table
View
Table Column / View Column
Index, Foreign Key Constraint, Primary Key Constraint, Unique Constraint

Note that Synonyms are not supported: any reference to a synonym is silently ignored by the analyzer (no message issued).

Links created by the analyzer are summarized in the following table:

Called/Parent (X) → Caller/Child (Y) ↓instancedatabaseschematabletable columnviewview columnunique constraintPKFKtriggerfunctionprocedure←Called/Parent (X)  ↓Caller/Child (Y)
instancearea (instance)
databaseBelong
schemaBelongcontainer (schema)
tableBelongRefer Integrity (FK –> PK)Fire: Before Insert/Update/Delete, After Insert/Update/Delete, For each row Insert/Update/Delete and For all row Insert/Update/Deletetable
table columnBelongRefer Integrity (FK –> PK)table column
indexBelongRely onRely on*)index (simple, bitmap, function based)
viewBelongUse (select)Access (read)Access (read)Fire: Instead of Insert/Update/Delete, For each row Insert/Update/Delete and For all row Insert/Update/Deleteview
view columnBelongview column
unique constraintBelongRely onUnique constraint
PKBelongRely on*)PK
FKBelongRely on*)Refer Integrity (FK –> PK)FK
triggerBelongUse: Use (Select), Use (Insert), Use (Update), Use (Delete)Access: Access (read), Access (write)Access: Access (read), Access (write)CallCalltrigger DML
functionBelongUse: Use (Select), Use (Insert), Use (Update), Use (Delete)Access: Access (read), Access (write)Access: Access (read), Access (write)CallCallfunction
procedureBelongUse: Use (Select), Use (Insert), Use (Update), Use (Delete)Access: Access (read), Access (write)Access: Access (read), Access (write)CallCallprocedure
Support for Microsoft SQL Server 2008

The following is a list of syntax supported by the T-SQL Analyzer:

  • Table-value parameters
  • MERGE statement
  • Initialization of variables at the same time of its declaration in
  • Inserting multiple rows in one statement (Row constructors)
  • Compound assignment operators
  • Grouping Sets
  • CREATE/DROP/ALTER Partition
  • New date & time data types
  • With regard to User Defined Table Types in Microsoft SQL Server 2008:
    • When a User Defined Table Type is analyzed by CAST it will be categorized as both a User Defined Type and a User Defined Table Type and will appear under the “SQL Server UDT” and “SQL Server UDT Table” folders in CAST Enlighten and the Discovery Portal.
    • If a standard relation table with an identical name as the User Defined Table Type is also located in the same database, then the table will be saved to the Analysis Service, whereas the User Defined Table Type will not be saved either as a User Defined Type or a User Defined Table Type.
    • No links are created between client objects (methods) and User Defined Table Types. However, if the client method calls a procedure which references the User Defined Table Type (i.e. via a DECLARE statement) then the User Defined Table Type will present in the database subset - but there is no direct link from the client method to the User Defined Table Type.

CAST Website