Database Diagram in SAS - sas

I want to create a diagram of SAS datasets in a SAS library, basically an equivalent of Database Diagram that can be created for database tables in SQL Server Management Studio. Can this be done using any of SAS applications?

Data Integration Studio is the SAS solution for visual management of ETL/data integration. The processes are build in flow chart diagrams. It also offers some options to visualize your data models.

I believe you are trying to build an entity relationship diagram to "visual" the schema for set of tables in your library. If you are looking just for documentation only, you can try Visio or MS-Access using OLEDB connection to read all table metadata from your library, however you need to build all the relationship including primary keys & etc.
If you are looking for building an ETL process, where maintaining entity relationship will be part of your ETL job, then Jetzler suggested ETL solution will be your tools, because once you build your process, the schema, e.g. star or snow-flake schema will be automatic generated for you.

Related

driver to support to read or write to HIVE from c++ code

I have core product built on c++ which uses RDBMS namely oracle DB. We are in phase to Big data enable on this product with access to Hive tables. I know from apache spark we have libraries to directly have access to hive tables.
Now with C++ being base language, what could be possible ways to read/write data on hive on cloudera?
Note: Not looking for pull data to/fro from hive and RDBMS or vice versa.(sqoop). Looking to read or fire query execution on hive itself.
Thanks in advance.
This is what worked out for me.
1. Install ODBC driver ODBC
2. Go through Installation guide Installation Guide
3. Open the Project in Visual cpp++ and execute .

Using a result (table from sas entrep guide) into sas miner

In SAS Miner, I would like to use a result/table from SAS entrep guide.
So far, I managed to save this result/table into sas studios.
In SAS Miner, when creating a data source, I have to select a SAS table or a metadata repository. I select Sas table then I am stuck as I can not access my source
It would be great if you know know how to solve this?
Save the data set into a location available to both the server used by Enterprise Guide and SAS Enterprise Miner. If they are the same server, great, put it into an easy to get to location.
After that, you will need to create a library reference to that location in Enterprise Miner. The specifics of that I am unsure of (I don't have a version to play with), but you administrator should be able to do that for you. If not, that's a good question for SAS Tech Support (which is free since you are a client).

Is FlywayDB or Liquibase used for Cross DB Migration?

I'm working on a project, which is planned to use/manage 3 different databases [MySQL, SQL Server, Oracle] as the back-end. Now I have finished with my database design and everything I have set in with MySQL database.
Now I have to migrate / clone to SQL Server & Oracle as well. Also, I need the system to update automatically, whatever changes I will make in MySQL database [structural, not data] to be replicated in SQL Server & Oracle as well.
I couldn't find anything worthy from the documentations of FlywayDB and Liquibase, rather than a database source control mechanism.
So can I go for / get support from FlyWayDB or Liquibase to do this? Or is there an alternative for this task? Please advise.
Liquibase is easier to manage different kind of databases because it use XML to describe structure.
Flyway use SQL rather than XML to keep the syntax as simple as possible
In your case, you probably have to adapt your data structure to be compatible with your 3 databases. Oracle is one of the most restrictive.
Flyway could be a better solution because you don't care about historic modifications and because you have a better knowneldge of sql

SAS Visual Analytics report automating creation process

Is there a way to automate the creation of a report in VA ?
I'm asking if it's possible to use a coding syntax to produce a report instead of doing it on the report builder page. I don't mind interacting with the metadata server on which resides Visual Analytics. I just need to create a report by coding instead of doing it visually.
This is very difficult, You will have to:
Reverse engineer the XML generated by an existing report object,
Write the XML of your own VA report,
Find a way to save the XML you generate to SAS Contents Server.

Zend Framework 2 and Doctrine change database per module

I have an application which use Zend Framework and Doctrine.
I want to change for a module the database from the default settings.
I have created an alternative connection for doctrine.
When creating/updating the tables using,
./vendor/bin/doctrine-module orm:schema-tool:update --force
the tables are created in the first configuration of database.
Basically what I want to update the second configured database tables.
Can someone help me with an working example ?
Thanks,
Bogdan
To my knowledge, the schema-tool binary only works with the orm_default database.
Now, there's certainly nothing stopping you from having modules that add additional named connections. See this documentation for doing that:
https://github.com/doctrine/DoctrineORMModule/blob/master/docs/configuration.md#how-to-use-two-connections
But, the tooling around managing those additional databases might be a little "roll your own". The good news is all the pieces are there (Doctrine's underlying SchemaTool classes), you would just need to wire them up and build a cli command that acts on multiple schemas.
All that being said, if you find yourself using multiple unique schemas in the same database engine (unique being the key word to account for things like doctrine sharding), I worry your application design might be potentially troublesome. It could be possible that your multiple storage domains should actually live as separate applications.