Example: bankruptcy

Microsoft SQL Server Analysis Services

Authored by: AVINASH KUMAR SINGH COMPANY: PAXCEL TECHNOLOGIES Microsoft SQL Server Analysis Services Analysis Services Data-Base Backup and Restore 1 Microsoft SQL Server Analysis Services Analysis SERVICE SHORT INTRODUCTION Analysis Services is an online analytical processing (OLAP) database, a type of database that is highly optimized for the kinds of queries and calculations that are common in a business intelligence environment. It does many of the same things that a relational database can do, but it differs from a relational database in many respects.

Microsoft SQL Server Analysis Services Analysis Services Data-Base Backup and Restore. 1 ices ANALYSIS SERVICE SHORT INTRODUCTION Analysis Services is an online analytical processing (OLAP) database, a type of database that is highly

Tags:

  Services, Analysis, Microsoft, Server, Analysis services, Microsoft sql server analysis services, Microsoft sql server analysis services analysis services

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Microsoft SQL Server Analysis Services

1 Authored by: AVINASH KUMAR SINGH COMPANY: PAXCEL TECHNOLOGIES Microsoft SQL Server Analysis Services Analysis Services Data-Base Backup and Restore 1 Microsoft SQL Server Analysis Services Analysis SERVICE SHORT INTRODUCTION Analysis Services is an online analytical processing (OLAP) database, a type of database that is highly optimized for the kinds of queries and calculations that are common in a business intelligence environment. It does many of the same things that a relational database can do, but it differs from a relational database in many respects.

2 In most cases, it will be easier to develop your BI solution by using Analysis Services in combination with a relational database such as Microsoft SQL Server than by using SQL Server alone. Analysis Services certainly does not replace the need for a relational database or a properly designed data warehouse. SQL Server ANALAYSIS Services DATABASE BACKUP Administrators can back up an Analysis Services database to a single Analysis Services backup file (.abf), regardless of size of the database. If the Analysis Services database contains remote partitions, the remote partitions can also be backed up. When you back up a database with remote partitions, all the remote partitions on each remote Server are backed up to a single file on each of those remote servers respectively.

3 Therefore, if you want to create those remote backups off their respective host computers, you will have to manually copy those files to the designated storage areas. Backing up an Analysis Services database produces a backup file whose contents vary depending upon the storage mode used by the database objects. This difference in backup content results from the fact that each storage mode actually stores a different set of information within an Analysis Services database. For example, multidimensional hybrid OLAP (HOLAP) partitions and dimensions store aggregations and metadata in the Analysis Services database, while relational OLAP (ROLAP) partitions and dimensions only store metadata in the Analysis Services database. Because the actual contents of an Analysis Services database vary based on the storage mode of each partition, the contents of the backup file also vary.

4 The following table associates the contents of the backup file to the storage mode used by the objects. Storage Mode Contents of backup file Multidimensional MOLAP partitions and dimensions Metadata, source data, and aggregations Multidimensional HOLAP partitions and dimensions Metadata and aggregations Multidimensional ROLAP partitions and dimensions Metadata Tabular In-Memory Models Metadata and source data Tabular Direct-Query Models Metadata only NOTE Backing up an Analysis Services database does not back up the data in any underlying data sources, such as a relational database. Only the contents of the Analysis Services database are backed up. 2 Microsoft SQL Server Analysis Services When you back up an Analysis Services database, you can choose from the following options: Whether to compress all database backups.

5 The default is to compress backups. Whether to encrypt the contents of the backup files and require a password before the file can be unencrypted and restored. By default, the backed up data is not encrypted. Restoring an Analysis Services Database Administrators can restore an Analysis Services database from one or more backup files. Note If a backup file is encrypted, you must provide the password specified during backup before you can use that file to restore an Analysis Services database. During restoration, you have the following options: You can restore the database using the original database name, or you can specify a new database name. You can overwrite an existing database. If you choose to overwrite the database, you must expressly specify that you want to overwrite the existing database.

6 You can choose whether to restore existing security information or skip security membership information. You can choose to have the restore command change the restoration folder for each partition being restored. Local partitions can be restored to any folder location that is local to the Analysis Services instance to which the database is being restored. Remote partitions can be restored to any folder on any Server , other than the local Server ; remote partitions cannot become local. Security Note For each backup file, the user who runs the restore command must have permission to read from the backup location specified for each file. To restore an Analysis Services database that is not installed on the Server , the user must also be a member of the Server role for that Analysis Services instance. To overwrite an Analysis Services database, the user must have one of the following roles: a member of the Server role for the Analysis Services instance, or a member of a database role with Full Control (Administrator) permissions on the database to be restored.

7 Note After restoring an existing database, the user who restored the database might lose access to the restored database. This loss of access can occur if, at the time that the backup was performed, the user was not a member of the Server role or was not a member of the database role with Full Control (Administrator) permissions. 3 Microsoft SQL Server Analysis Services IMPLEMENTION TO SHOW HOW Analysis SERVICE DATABASE IS ATTACHED AND DETACHED Detach Analysis Services Database in Command Mode <Detach xmlns=" "> <Object> <DatabaseID>test2</DatabaseID> </Object> </Detach> Detach Analysis Services Database in GUI Mode Follow the following steps for detaching database in GUI mode right click on the database it will pop-up a dialogue box there is option to detach as shown below click on the detach option to detach.

8 4 Microsoft SQL Server Analysis Services Attach Analysis Services Database in Command Mode <Attach xmlns=" "> <Folder>E:\CROOKY_WORKS\Analysis_Services\ \</Folder> <ReadWriteMode xmlns=" ">ReadWrite</ReadWriteMode> </Attach> Attach Analysis Services Database in GUI Mode 1. Now to attach the database fist we have to set the browse option to browse for folder from where we are going to attach database .Go to properties of the Analysis Services and click on it. 5 Microsoft SQL Server Analysis Services 2. Now click on the check box Show advanced option and at the first option in the properties pane we will get AllowedBrowsingFolders click on that now append your path of the database which you want to attach after putting | for C:\Program_Files\Microsoft_SQL_Server\ \OLAP\Backup\|C:\Program Files\Microsoft_SQL_Server\ \OLAP\Log |E:\CROOKY_WORKS\Analysis_Services\ 6 Microsoft SQL Server Analysis Services 3.

9 Now go the database right click on the button and click on the attach button as shown 4. Here you can see that directory appears which we added previously in properties of Analysis Services .Please note that it does not require restart of Analysis service SQL Server engine 7 Microsoft SQL Server Analysis Services 5. Now click on the ok button by selecting the directory where your database resides which will make the folder available in the first dialogue box click OK to attach and you are done. 6. Click on the refresh button to show the database on the list of databases. 8 Microsoft SQL Server Analysis Services Backing up Analysis Services Database in Command Mode <Backup xmlns=" "> <Object> <DatabaseID>test2</DatabaseID> </Object> <File>E:\CROOKY_WORKS\Analysis_Services\ \ </File> <AllowOverwrite>true</AllowOverwrite> <Password>paxcel@123</Password> </Backup> Backing up Analysis Services Database in GUI Mode 1.

10 Right Click on the Analysis Service Database in dialogue box Backup as shown. 9 Microsoft SQL Server Analysis Services 2. You can change the location of the backup of Analysis service database by click on the browse button and directories which are available in browsing list ,there is option to overwrite the existing backup on the same location you can also specify password to encrypt your backup when you are done with the above mentioned scenario go ahead and click on OK button to initiate the backup of Analysis service database in GUI mode. 10 Microsoft SQL Server Analysis Services Scheduling Backup of Analysis Services Database in Command Mode through SQL Server Agent USE [msdb] GO /** Object: Job [ Analysis service_Backups] Script Date: 04/24/2013 23:52:27 **/ BEGIN TRANSACTION DECLARE @ReturnCode INT SELECT @ReturnCode = 0 /** Object: JobCategory [Database Maintenance] Script Date: 04/24/2013 23:52.


Related search queries