Bug : SpagoBI 5.2 Meta can't add relationship from cube to dimensions while creating OLAP cube - open-source

I'm using SpagoBI 5.2 Meta for creating Olap cube.I could create a database connection with Mysql database and imported physical tables.But It doesn't identify foreign key relationships in the physical tables. By right clicking on business classes, I have created dimensions and cube but when I try to edit business model to "Add relationship" ,the "finish" button on the GUI is disabled all the time.What may be the reasons for this.Do I need to add any inbound,outbound relationships first?
Here I've attached screenshot of GUI that has disabled "finish" button
Best Regards!!

First you have to set what is dimension and what is fact in your model.
You can do this by right click in the table (Olap > Create Cube or Create Dimension).
After do this for all tables in your model, you can add relationships with no problem.
Detail of the submenu

Related

'Magic' ERD generator MySQL, MS SQL

I haven't managed to find a specific answer to this question which works for me, but maybe i'm misunderstanding one or two key points.
I am trying to create a data migration policy for a project where 3 systems (2 X MySQL, 1 X MS SQL) are being consolidated into 1 new system (MS SQL).
To help visualize this problem i want to create Entity Relationship Diagrams for each database. I know how to reverse engineer each database to a sql script, and i know that programs like MySQL Workbench and SQL server management studio have tools which allow you to create diagrams.
My question is: Is there any way to create the diagrams automatically? I.e. somehow analyse foreign keys and detect which field(s) in table A link to table B and insert links in the diagram between the correct fields?
SQL Server Management Studio comes with a diagramming tool. In the Object Explorer, expand your database, then right click on Database Diagrams. You can view and create new FK relationships in there.
I have just realised that the databases i am testing with do not have foreign key constraints set up properly. So i guess the answer is yes, there are ways you can create these diagrams automatically but the foreign keys must be configured.

Adding new table to ER Diagram

I created database and ER Diagram. Then I added new table to exsisting database. Now I would like have this table in my ER Diagram. How can I do it? Have I to create new Diagram? Of course I can use the table tool on the vertical toolbar, but if I have new table I suppose that is better way to get this table in Diagram.
First, always upgrade to the latest MySQL Workbench version (at the time being 6.0.9 with 6.1 around the corner).
I assume you created your EER diagram from the database via reverse engineering. Any time you want to update either the model or the database (schema) run the synchronization in MySQL Workbench. Open a model and go to Database -> Synchronize Model.... This is a two-way tool (model to schema and schema to model), but you can manually define the direction (or to ignore a change). Once you have synchronized your changed schema the new table will appear in the catalog tree where you can drag it to a diagram.
There should be a pane on the left titled Catalog Tree in the tab for your existing EER diagram.
You can drag and drop your new table onto the existing diagram. If the table isn't listed, do a refresh on the dbname in the tree view.

MySQL Workbench - All diagrams in EER Model update when working in single diagram

I've created an EER Model for a project and I have a couple diagrams inside the model.
My problem is that I have tables with the same name in all the diagrams and when I update one table, all with the same name suffer the same alterations.
How can I avoid this behavior and have a diagram independant from the others?
With MySQL Workbench it is possible to place the same table on more than one diagram. All these "instances" (we call them figures) represent the same db object. Hence changing that table it will appear changed on all diagrams. It's the same object after all.

Change Table Structure in SQl Server 2008

I am trying to change a design of a table in SQL Server 2008, but I am getting an error stating that I need to drop and recreate the table.How Can I Solve This Problem.
Saving Changes is Not Permitted.The
Changes you Have Made require the
following tables to be dropped and
re-created.you have either made
changes to a table that can't be
re-created or enabled the option
prevent saving changes that require
the table to be re-created.
Go to: Tools - Options - Designers - Table and Database Designers and de-select "Prevent saving changes that requiere table re-creation"
You can do most things with ALTER TABLE. Changing a datatype, nullability, adding/removing most constraints, adding/removing columns (ignoring order) should not require a table rebuild.
The GUI designer will ask for a table rebuild if you reorder columns, or add IDENTITY.
As Pcofre has said the answer is:
click Tools ---> Options ----> Designer ---->
on the right pane find the option meaning prevent the tables from being recreated
then Remove its tick

MySQL Workbench - How to synchronize the EER Diagram

I am creating a visual representation of my existing database with MySQL Workbench and I am able to synchronize the models with the "Database -> Synchronize Model..." menu. However, every time I synchronize (update) my model, I have to recreate the EER Diagram and rearrange all the tables. Is there a way to update or synchronize the EER Diagram as well? Thanks.
Database > Synchronize Model...
Choose Stored Connection
Select the Schemata
Choose which to update: Model or Source (in your case, point arrows to Model)
Are you by any chance using a MySQL DB engine that doesn't support foreign keys (e.g. MyISAM?)? Hence, the relations between the tables is not saved on the MySQL server and get lost during synchronization to the workbench.
But I realize this is only the 'why' of your question. I cannot provide an answer that would preserve your arrangement without using an engine that supports foreign keys, e.g. InnoDB.
I was having a variant of this problem--somehow when I would update the model from the database, one of my tables and its corresponding updatable view wouldn't update.
I believe what was happening is that the model was actually updating, but not the diagram. I didn't really make the distinction at first.
Anyway here's how to get the refresh on the E/R diagram:
Delete the nonupdating object(s) from the diagram. (Just right click and choose "Delete".)
Find the objects in the catalog view in the left sidebar.
Drag them back onto the diagram.
Now they should reflect the model (which should reflect the DB if you followed the accepted answer above.)
When I have more than 3 tables to sync, with changes on relations, I changes arrow direction (model <- source), I check "Skip DB changes and update model only" and Execute...
The "Progress of Model and Database Synchronization" window hang with "Apply changes to Model" highlighted. No processor working, nothing move...
I click the X of the window and redo the process again. Clicking the DB, ignore (all), and selecting less tables to update.
v.5.2.44 ce rev 9933
EDIT: Version 5.2.47 correct this bug !!! YĆ© !