I was wondering if there is a way to use data sources for source/destination stored in system DSN (the "connections" you add on control panel by going to Administrative Tools -> ODBC Data Sources) in Business Intelligence Design Studio.
Thanks in advance!
No there's no way to do that. You can use configuration files or tables to manage what the connection managers actually connect to though.
Related
Is there any good ER Modelling tool available for SAP HANA , which accomplishes the following :
Creation of ER Diagrams
Generating HANA specific SQL Scripts
Connecting to HANA DB Instance
Generating all schema objects modelled
TIA
There are two tools from SAP:
SAP (Sybase) Powerdesigner, also supporting different other DBs, e.g. for reverse engineering. With Powerdesigner you can model conceptual, logical, physical Data models and also generate a HANA DB schema in different ways, e.g. by generating scripts containing "create..." statements or CDS files.
Then there is the Enterprise Architecture Designer which can be installed as addon in HANA XS advanced starting with HANA 2.0. This tool is quite new and I have not worked with it yet.
There are probably also tools from other vendors.
The Web IDE for SAP HANA that was delivered with XS Advanced in SAP HANA 2.0 SP01 sounds like what you are looking for as it has a graphical editor to create and link database entities (this is what it looks like):
Core Data Services graphical editor Web IDE for SAP HANA
With XS Advanced, the model is container-based and schema-less.
Here are a couple of links if you would like to try it out:
Getting started with XS Advanced (in the HDI step, right click on any of the .hdbcds files and you will have the option to open it in the graphical editor): https://www.sap.com/developer/groups/hana-xsa-get-started.html
If you need to integrate a database schema from XS Classic or, for example, an ERP replicated schema, you can search for xsa-create-user-provided-anonymous-service in the same site
As for "HANA-specific SQL scripts", it depends on what you are trying to do. If you want to access data in an optimized way and perform calculations, you can use Calculation Views, which are built graphically and the DB will do the equivalent to SQL under the hood. There are some tutorials in the developer[dot]sap[dot]com website, under the Developer->tutorial menu.
If you do not have a HANA instance to try this and/or EA designer you can download your own HANA instance for free:
Download SAP HANA, express edition (you will need the XS Advanced tooling that includes the Web IDE for SAP HANA): sap[dot]com/developer/topics/sap-hana-express.html
If your computer does not have enough resources to comfortably host your HANA instance, there's a blog on how to install it in a cloud platform using a free operating system, search for hana-express-edition-on-google-cloud-platform-and-ubuntu (sorry, I cannot post any more links).
Cheers!
How can I change custom access to dimension data for some role using scripts or XMLA file or some .net code without UI such as SQL Server Management Studio or Business Intelegence Developer Studio?
The goal is to have ability to change permissions from another application via web-interface or some bat file etc.
Yes. You can automate role setup with AMO like this article shows:
https://bennyaustin.wordpress.com/2011/05/24/ssas-using-amo-to-secure-analysis-service-cube/
But you might also consider dynamic security before you try another approach:
http://hccmsbi.blogspot.com/2007/08/implementing-user-specific-security-in.html
I installed Microsoft SQL Analysis Service because I need it to run a forecast analysis from Excel using the Data Mining Plug-in.
When I open MS Management Studio and connect to the SSAS I don't know how to create a new database.
When I right-click over Databases there is nothing like Create Database or New Database.
This is the image of my problem:
Well... I solved my problem reinstalling the suite selecting all of its options.
I still don't know what may cause this problem if not chosen in the instalation options but now I have the New Database option and could finish my job.
Thanks.
I managed to solve this problem by switching Analysis Services from Tabular to Multidimensional mode:
Stop SQL Server Analysis Services service
Go to the config folder, e.g. C:\Program Files\Microsoft SQL Server\MSAS15.SQL2019\OLAP\Config
Copy file msmdsrv.ini to another folder (you can't edit it here directly)
Open the copied file and search for the DeploymentMode xml tag
Set the value to zero
Save the file, copy it back to the Config folder
Start the service
You can use SQL Server Management Studio to create a new, empty database on an instance of SQL Server Analysis Services.
To create an Analysis Services database
Connect to an Analysis Services instance.
In Object Explorer, expand the node for the connected Analysis Services instance.
Right-click the Databases node of the Analysis Services instance and select New Database.
In the New Database dialog box, in Database name, type the name of the new database.
In Impersonation, provide impersonation information for the new database.
In Description, type the optional description for the new database.
Click OK.
I have an existing database (SQL Server 2008 R2), and my goal is to have a project that can install the same database as I already have.
i.e the project will read the schema and the data, and will be able to duplicate the existing data and schema.
This tool needs to save the database information to disk so I will able to install the database on different machines.
Can I do it with Visual studio 2010 database projects?
Is it a simple task?
(The reason I am asking is that I already have such a project that installs my database, but this tool is very old(~2000).
That old project is one big mess, it has C#, java, sql, batch files and some 3rd party tools and has many more capabilities than I need for my current product..)
Thanks.
Use SQL Server Management Objects (SMO) to create a snapshot of your source db and then restore it to the target server.
More on SMO here: http://msdn.microsoft.com/en-us/library/ms162169.aspx .
A nice tutorial here: http://www.codeproject.com/KB/database/SMO_Tutorial_1.aspx
The easiest way is to backup using SQL server management studio. Then move the backup file to the second server and there restore it with SQL server management studio. If you need SQL code to do it (instead of GUI way), just drop a comment...
This codeplex project has a basic library that does that if you like to roll your own and has two sample projects for migration/comparison tasks.
http://dbschemareader.codeplex.com/
Also the commercial option is to use Sql Redgate's tools. They are expensive but worth every penny if this is a mission critical database. On the otherhand, if you are just using a db as an alternative to a file, say in a embedded scenario, it might be hard to justify such an expensive tool.
Have you tried DBSourceTools ? http://dbsourcetools.codeplex.com
It is an open-source database versioning tool that will script out all database objects and data to disk, and then re-create the database on another machine.
It has all of the features that you are looking for.
I enjoy using SQL Server Management Studio for change and updating my database. Its easier, faster, and safer than writing changes myself.
I was looking into using some sort of version control for databases and read about using a SQL Server Database Project in Visual Studio 2010.
I scripted out an existing database and imported it into a new SQL Server Database Project. Now, from what I can tell, there is no GUI to edit the database; I can't add columns, change datatypes, or edit existing data without scripting it myself. For instance, in SQL Server Management Studio I can right click on a table-name and select "Design" and then add/edit columns, change datatypes, etc from there.
While Visual Studio's Database Projects has some features SQL Management Studio does not have I don't think I can live without a "table designer".
Is there a table designer built into VS's Database Project I'm just not seeing?
No, there's no table designer.
If you're starting to think about version controlling your database, you ought also to be thinking about writing actual SQL to implement your database objects. That's the route that the Database Projects force you down. If you can't write the SQL for your database changes, how are you going to be able to review and appreciate a diff between how a table was 6 months ago, and how it currently is in your project?
I've been using VS2008 Database Projects for about 10 months now for our version control. Every now and then I do still use the table designer, it is a quick and easy tool. I believe the majority of your question centers around workflow as this is what I found to be the most challenging part about development in a version controlled environment. I would recommend continuing to design your objects in Management Studio or however you're comfortable and then do a create script and import that script into your Database project. There are some quirks when doing this, you'll need to always script the create statement even if you're performing an alter in your environment. As well you'll need to remove any USE statements for your database as the context in which you're importing your scripts will always be in the project you're importing to.
We have found that a successful workflow for us to facilitate code deployment is to have a production branch which is branched to a Main (development branch) and then to test. All new development is done in Main and merged by changeset to each other environment as required.
You can import your scripts from your development environment by right clicking in the solution and clicking import scripts. I recommend that you check all the options to overwrite objects that exist, import extended properties and import permissions.
After changing your DB schema using SSMS's GUI tool, you can use Database project's Schema Compare tool to update your project files (set the source to be your database and target to be your project). This way you can keep using GUI tool to manage the schema and the database project will manage the versioning.
There is no visual table designer in Visual Studio 2010 Database Project. But, concerning version control for databases, there is a workaround - you can use SQL Server Management Studio together with Red Gate's SQL Source Control. It costs some money but definitely is worth it.