Server Manager throws the following error when trying to install the SQL Analyzer extension:
Analyzer for SQL Files is incompatible with the schema metamodel
As shown in the screenshot below:
Release | Yes/No |
---|---|
8.3.x |
RDBMS | Yes/No |
---|---|
CSS |
Below is the step-by-step scenario leading to the problem:
In your CAST schemas (local, central & mngt), the custom UA language pack “SQLScript” has been installed.
To determine if it has been installed, run the following query in Management base.select * from Cat where IdCat = 2361000
When the query returns a line, SQLScript is installed.
- Download SQL Analyzer Extension
- Open Server Manager
- Install SQL Analyzer Extension in Server Manager
Extension SQL Analyzer cannot be installed, so you cannot analyze the SQL part of your analysis
The issue here is due to an incompatibility with a prior Universal Analyzer provided by the consulting organization and the SQL Analyzer extension.
To remedy this issue,do the following steps:
- Download this update to the existing consulting Universal Analyzer (UA): Zip file for modifying consulting SQLScript UA
- Update the currently installed SQLScript UA files with the files from the downloaded update (See the following for documentation on this step: Updating the UA files )
- With server manager, run "Load metamodel from disk" on all 3 schemas: local, central & mngt (See the following for documentation on this step: Load MetaModel )
Run the below update queries on the management database, updating the set search_path line to have the management based being used for the updates. The results of these queries will just show that items have been updated. The queries below are for CSS.
SET search_path TO <my_mngt>; UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>SQLScript<','>SQLScriptFile<'); UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>SQLScriptProject<','>SQLScriptFileProject<'); UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>SQLScriptContent<','>SQLScriptFileContent<'); UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>SQLScript_SUBSET<','>SQLScriptFile_SUBSET<'); UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>APM SQLScript Module<','>APM SQLScriptFile Module<'); UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>APM SQLScript Artifacts<','>APM SQLScriptFile Artifacts<'); UPDATE cal_objsetdef SET setdefinition=REPLACE(setdefinition,'>EnlightenSQLScript<','>EnlightenSQLScriptFile<'); UPDATE CMS_AMT_ObjectTypes cao SET Description = t.TypDsc FROM Typ t WHERE t.IdTyp = cao.AMTObjectID AND t.TypDsc LIKE '%SQLScript%' AND cao.Description != t.TypDsc;
The “SQL Analyzer” can now be installed via the standard procedure with extension downloader and Server Manager
This procedure will NOT take care of fixing any config files exported from TCC or Architecture Checker created prior to executing the above procedure and it may still contain references to the old "SQLScript UA" types. In case of any doubt, never re-import those files.