<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>KB Update SQL Tool - Using the tool in specific scenarios on Documentation - V2</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/</link><description>Recent content in KB Update SQL Tool - Using the tool in specific scenarios on Documentation - V2</description><generator>Hugo</generator><language>en</language><atom:link href="https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/index.xml" rel="self" type="application/rss+xml"/><item><title>KB Update SQL Tool - Removing an existing object using CI_NO_OBJECTS</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-removing-an-existing-object-using-ci-no-objects/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-removing-an-existing-object-using-ci-no-objects/</guid><description>&lt;h3 id="based-on-objects-id"&gt;Based on object&amp;rsquo;s ID&lt;/h3&gt;
&lt;p&gt;In this example, we are going to remove a VB Sub called &amp;ldquo;Disconnect&amp;rdquo; from the Analysis schema. The image below shows the object in CAST Enlighten:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://doc-data.castsoftware.com/AIPCONSOLE/attachments/580223142/580223148.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;The first step is to insert the data into the CAST entry tables that will cause the object in question to be removed from the Analysis Service when the tool is run:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;insert&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;into&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;KB_name&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;dbo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;CI_NO_OBJECTS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;OBJECT_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ERROR_ID&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;select&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;OBJECT_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;0&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;KB_name&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;dbo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;CTV_GUID_OBJECTS&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;where&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;OBJECT_NAME&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;&amp;#39;&lt;/span&gt;&lt;span class="n"&gt;Disconnect&lt;/span&gt;&lt;span class="err"&gt;&amp;#39;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;go&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="alert alert-info" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Info&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;The 0 parameter will enter 0 in the ERROR_ID column of the CI_NO_OBJECTS table.&lt;/li&gt;
&lt;li&gt;Note that you need to specify the Analysis Service database and user as above &amp;ldquo;&amp;lt;KB_name&amp;gt;.dbo&amp;rdquo; otherwise the query will fail when the job is run.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;Then:&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Removing an existing link using CI_NO_LINKS</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-removing-an-existing-link-using-ci-no-links/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-removing-an-existing-link-using-ci-no-links/</guid><description>&lt;h3 id="based-on-objects-id"&gt;Based on object&amp;rsquo;s ID&lt;/h3&gt;
&lt;p&gt;In this example, we are going to remove a link between two SQL objects (a T-SQL procedure called &amp;ldquo;CreateNewOrders&amp;rdquo; and a T-SQL table called &amp;ldquo;stores&amp;rdquo;) from the Analysis schema. The image below show the link in CAST Enlighten:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://doc-data.castsoftware.com/AIPCONSOLE/attachments/580223153/580223157.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;The first step is to check that the link exists in the Analysis schema using the CAST System Views. Use the following query in an SQL IDE against your Analysis schema:&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Removing an object property using CI_NO_PROPERTIES</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-removing-an-object-property-using-ci-no-properties/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-removing-an-object-property-using-ci-no-properties/</guid><description>&lt;p&gt;Object properties can be divided into two main groups:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;alphanumeric&lt;/strong&gt; properties (for example object comments or business functions).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;numeric&lt;/strong&gt; properties (for example the number of inner comment lines, number of code lines etc.).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These can all be removed using the CAST entry table CI_NO_PROPERTIES. Properties are listed in the CAST System View CTV_OBJECT_PROPERTIES.&lt;/p&gt;
&lt;h3 id="based-on-objects-id"&gt;Based on object&amp;rsquo;s ID&lt;/h3&gt;
&lt;p&gt;In this example, we are going to remove a property from an SQL object (a Procedure called &amp;ldquo;GetTitleAuthors&amp;rdquo;) in the Analysis schema. The property we are going to remove is the Source Code Comments, which is described in the Analysis Service as &amp;ldquo;sourceCodeComment&amp;rdquo;.&lt;br&gt;
You can check the value for this property by querying a CAST System View:&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Adding a new object linked to a parent object that already exists using CI_OBJECTS and CI_PARENTS</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-adding-a-new-object-linked-to-a-parent-object-that-already-exists-using-ci-objects-and-ci-parents/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-adding-a-new-object-linked-to-a-parent-object-that-already-exists-using-ci-objects-and-ci-parents/</guid><description>&lt;p&gt;When adding a new object to the Analysis schema you MUST also define a link with a parent object. If you do not do so, an error (&amp;ldquo;The parent of the object is missing&amp;rdquo;) will be generated. See for more information on error handling.&lt;/p&gt;
&lt;h3 id="based-on-objects-id"&gt;Based on object&amp;rsquo;s ID&lt;/h3&gt;
&lt;p&gt;In this example, we are going to add a new object (a T-SQL View called &amp;ldquo;TEST&amp;rdquo;) and link it as a child to the existing database &amp;ldquo;CASTPUBS&amp;rdquo; that is already synchronized with the Analysis schema. 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).&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Modifying an object property on an existing object using CI_INT_PROPERTIES</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-modifying-an-object-property-on-an-existing-object-using-ci-int-properties/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-modifying-an-object-property-on-an-existing-object-using-ci-int-properties/</guid><description>&lt;p&gt;As outlined above, properties can be either alphanumeric or numeric. To modify the property of an object that already exists in the Analysis Service, two CAST entry tables are used, depending on the type of property:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Alphanumeric&lt;/strong&gt; &amp;gt; CI_STR_PROPERTIES&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Numeric&lt;/strong&gt; &amp;gt; CI_INT_PROPERTIES&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The examples in this section modify numeric properties, however it is fairly simple to modify the queries if you want to work with alphanumeric properties.&lt;/p&gt;
&lt;h3 id="based-on-objects-id"&gt;Based on object&amp;rsquo;s ID&lt;/h3&gt;
&lt;p&gt;In this example, we are going to modify various numeric properties on a T-SQL object (a T-SQL Procedure called &amp;ldquo;DeleteAllOrders&amp;rdquo;) that is synchronized with the Analysis schema.&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Creating new links between existing unlinked objects using CI_LINKS</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-creating-new-links-between-existing-unlinked-objects-using-ci-links/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-creating-new-links-between-existing-unlinked-objects-using-ci-links/</guid><description>&lt;h3 id="based-on-objects-id"&gt;Based on object&amp;rsquo;s ID&lt;/h3&gt;
&lt;h4 id="objects-belong-to-the-same-project-and-to-different-projects-identical-for-each"&gt;Objects belong to the same project and to different projects (identical for each)&lt;/h4&gt;
&lt;p&gt;This example will explain how to create a &amp;ldquo;Call&amp;rdquo; link between unlinked C++ macros (&amp;ldquo;AUTHORLENGTH&amp;rdquo; (caller) and &amp;ldquo;AUTHORSIZE&amp;rdquo; (called)) that already exist in the Analysis schema. Both objects are part of the same project (although the process for linking objects that belong to different projects is identical):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://doc-data.castsoftware.com/AIPCONSOLE/attachments/580223171/580223179.png" alt=""&gt;&lt;br&gt;
You can also check that the two objects are not already linked by executing the following query against the Analysis schema:&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Modifying links between existing linked objects using CI_LINKS</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-modifying-links-between-existing-linked-objects-using-ci-links/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-modifying-links-between-existing-linked-objects-using-ci-links/</guid><description>&lt;h3 id="neither-objects-have-an-object_guid"&gt;Neither objects have an OBJECT_GUID&lt;/h3&gt;
&lt;div class="alert alert-warning" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Note&lt;/div&gt;
&lt;p&gt;Note that in AIP Core &lt;strong&gt;≥&lt;/strong&gt; 8.3.45, the table &lt;strong&gt;GUID_OBJECTS&lt;/strong&gt; can no longer be used . Attempting to use it will generate and &lt;strong&gt;ERROR_ID = 5&lt;/strong&gt; on each returned row. If you have scripts using this table to generate custom OBJECT_GUIDs, for legacy technologies such as VisualBasic and PowerBuilder, you should update those scripts to use the OBJECT_ID (which is always available) instead of generating a custom OBJECT_GUID using this table. In this situation, the example below is obsolete and should not be used.&lt;/p&gt;</description></item><item><title>KB Update SQL Tool - Modifying link properties</title><link>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-modifying-link-properties/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/aipconsole/aip-console-user-interface/aip-console-application-management/application-config/application-config-advanced/application-config-update-application-schema/application-config-update-application-schema-kb-update-sql-tool/kb-update-sql-tool-using-the-tool-in-specific-scenarios/kb-update-sql-tool-modifying-link-properties/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;div class="alert alert-info" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Info&lt;/div&gt;
&lt;p&gt;Available only for schemas created with &lt;strong&gt;AIP Core ≥ 8.3.45&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Properties on links can be either alphanumeric or numeric. To modify the property of a link that already exists in the Analysis schema, two CAST entry tables are used, depending on the type of property:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Alphanumeric&lt;/strong&gt; &amp;gt; CI_STR_LINK_PROPERTIES&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Numeric&lt;/strong&gt; &amp;gt; CI_INT_LINK_PROPERTIES&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The examples in this section modify numeric properties, however it is fairly simple to modify the queries if you want to work with alphanumeric properties. To view a list of properties that can be modified, use the CAST System View &amp;ldquo;CTV_PROPERTIES&amp;rdquo;:&lt;/p&gt;</description></item></channel></rss>