Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When adding a new object to the CAST Analysis Service you MUST also define a link with a parent object. If you do not do so, an error ("The parent of the object is missing") will be generated. See for more information on error handling.

Based on object's ID

In this example, we are going to add a new object (a T-SQL View called "TEST") and link it as a child to the existing database "CASTPUBS" that is already synchronized with the CAST Analysis Service. Remember that T-SQL objects are not automatically given OBJECT_GUIDs, but this method will allow you to create your own OBJECT_GUID for the new object and will automatically create the OBJECT_GUID for the existing object (where it does not exist).

...

Finally, you can check in CAST Enlighten - F5 to refresh the view - that everything is as it should be:

Image Modified

Image Modified

Based on object's GUID

Linked to a parent object that has an OBJECT_GUID

In this example, we are going to add a new object (a Function called "TEST ()" and link it as a child to the existing C++ object (a file called "EXAMPLE.C") in the CAST Analysis Service. The first thing to do is to check that no other objects in the CAST Analysis Service are using what will be the new OBJECT_GUID of this new object (please see chapter Creating OBJECT_GUIDs for more information about creating OBJECT_GUIDs for objects that do not have them):

...

Finally, you can check in CAST Enlighten - F5 to refresh the view - that everything is as it should be:

Image Modified

Image Modified

Linked to a parent object that has no OBJECT_GUID

In this example, we are going to add a new T-SQL server object (a stored procedure called "TEST_PROC") to the CAST Analysis Service. This will be added to the parent database "CASTPubs".

...

Finally, you can check in CAST Enlighten - F5 to refresh the view - that everything is as it should be:

Image Modified

Image Modified