Microsoft SQL Server Analysis Services

Similar documents
Database Server Maintenance Plan

How to Backup and FTP your SQL database using E2.

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

Moving the Web Security Log Database

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

How to Copy A SQL Database SQL Server Express (Making a History Company)

Moving the TRITON Reporting Databases

FaxCore 2007 Application-Database Backup & Restore Guide :: Microsoft SQL 2005 Edition

Backing Up CNG SAFE Version 6.0

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

SQL SERVER REPORTING SERVICES 2012 (POWER VIEW)

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

DigiVault Online Backup Manager. Microsoft SQL Server Backup/Restore Guide

Moving a Romexis Database to an Existing SQL Instance

DSS Support Backup / Restore DSS Databases using Windows Backup Windows XP Windows 2003 Server

Video Administration Backup and Restore Procedures

FaxCore 2007 Database Migration Guide :: Microsoft SQL 2008 Edition

SAS 9.3 Foundation for Microsoft Windows

LEARNING SOLUTIONS website milner.com/learning phone

Microsoft SQLServer Restore / Redirected Restore Procedure

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

Technical Bulletin. SQL Express Backup Utility

InformationNOW SQL 2005 Database Backup and Restoration

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

Backup/Restore Microsoft SQL Server 7.0 / 2000 / 2005 / 2008

SPHOL207: Database Snapshots with SharePoint 2013

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

Support Document: Microsoft SQL Server - LiveVault 7.6X

FaxCore Ev5 Database Migration Guide :: Microsoft SQL 2008 Edition

MICROSOFT EXAM QUESTIONS & ANSWERS

Notes Transfer instructions INTRODUCTION More information

InformationNOW SQL 2008 Database Backup and Restoration

Configuration Guide. Remote Backups How-To Guide. Overview

Analysis Services Step by Step

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

Installing LearningBay Enterprise Part 2

How to Back Up and Restore an ACT! Database Answer ID 19211

BACKUP & RESTORE (FILE SYSTEM)

Hyperoo 2.0 A (Very) Quick Start

Pharos Uniprint 8.4. Maintenance Guide. Document Version: UP84-Maintenance-1.0. Distribution Date: July 2013

Avatier Identity Management Suite

Published. Technical Bulletin: Use and Configuration of Quanterix Database Backup Scripts 1. PURPOSE 2. REFERENCES 3.

If you have questions or need assistance, contact PCS Technical Services using the contact information on page 10.

OLAP Cube Manual deployment and Error resolution with limited licenses and Config keys

Protecting SQL Server Databases Software Pursuits, Inc.

1 of 10 1/31/2014 4:08 PM

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

1. OLAP is an acronym for a. Online Analytical Processing b. Online Analysis Process c. Online Arithmetic Processing d. Object Linking and Processing

Designing Business Intelligence Solutions with Microsoft SQL Server 2012 Course 20467A; 5 Days

BackupAssist v6 quickstart guide

Bussiness Intelligence and Data Warehouse. Tomas Bartos CIS 764, Kansas State University

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Print Audit 6 - How to Move Print Audit 6 and a SQL Server 2005 Express Database to a New Server

SQL Backup and Restore using CDP

2074 : Designing and Implementing OLAP Solutions Using Microsoft SQL Server 2000

Velocity Database Migration Guide

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

WHITE PAPER: ENTERPRISE SOLUTIONS. Symantec Backup Exec Continuous Protection Server Continuous Protection for Microsoft SQL Server Databases

Migrating MSDE to Microsoft SQL 2008 R2 Express

QUANTIFY INSTALLATION GUIDE

How to Backup Your Eclipse.Net Database Automatically. To clearly document a specific automatic SQL database backup method for Eclipse.net.

CINCH Software Installation Instructions

Database Operations (Backup/Restore/Move/Manage) Technical Support Engineering Rosslare Security NA For more information please see

Implementing Data Models and Reports with Microsoft SQL Server 2012 MOC 10778

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

Getting to Know the SQL Server Management Studio

Entity store. Microsoft Dynamics AX 2012 R3

MS 20467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

Migrating helpdesk to a new server

Make sure you have configured the following backup methods or your data may not be properly protected.

Table of Contents. RFMS SQL Backup

Diver-Office Backup and Restore the Database

Backup / migration of a Coffalyser.Net database

TMS Database Knowledge Tips

Microsoft Corporation. Project Server 2010 Installation Guide

Implementing Data Models and Reports with Microsoft SQL Server

Attix5 Pro Plug-ins. V7 Sailfish R2 User Manual. for Microsoft Windows. Your guide to installing and using Attix5 Pro plug-ins.

Online Backup and Recovery Manager Setup for Microsoft Windows.

Sage Estimating. (formerly Sage Timberline Estimating) SQL Server Guide

Ascent Capture's MSDE 2000 Backup and Restore Instructions (For Ascent Capture 7.x and 6.x using the default MSDE 2000 database)

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

SQL Server Analysis Services Complete Practical & Real-time Training

LT Auditor Windows Assessment SP1 Installation & Configuration Guide

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

About database backups

MOUNT10 Plug-ins. V7 Sailfish R2 User Manual. for Microsoft Windows. Your guide to installing and using MOUNT10 plug-ins.

Exploring AlwaysOn Failover Cluster Instances

Database Maintenance ZENworks Mobile Management 2.7.x August 2013

70-467: Designing Business Intelligence Solutions with Microsoft SQL Server

BackupAssist v6 quickstart guide

ecopy ShareScan 5.0 SQL installs guide

How To Restore Your Data On A Backup By Mozy (Windows) On A Pc Or Macbook Or Macintosh (Windows 2) On Your Computer Or Mac) On An Pc Or Ipad (Windows 3) On Pc Or Pc Or Micro

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.7

SQL Server Replication Guide

All rights reserved. Trademarks

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

Migrating Mobile Security for Enterprise (TMMS) 8.0 to version 9.0

Database Fundamentals

Transcription:

Microsoft SQL Server Analysis Services Analysis Services Data-Base Backup and Restore Authored by: AVINASH KUMAR SINGH COMPANY: PAXCEL TECHNOLOGIES PVT.LTD

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. 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. 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. The following table associates the contents of the backup file to the storage mode used by the objects. Storage Mode Multidimensional MOLAP partitions and dimensions Multidimensional HOLAP partitions and dimensions Multidimensional ROLAP partitions and dimensions Tabular In-Memory Models Tabular Direct-Query Models NOTE Contents of backup file Metadata, source data, and aggregations Metadata and aggregations Metadata Metadata and source data Metadata only 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. 1

When you back up an Analysis Services database, you can choose from the following options: Whether to compress all database backups. 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. 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. 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. 2

IMPLEMENTION TO SHOW HOW ANALYSIS SERVICE DATABASE IS ATTACHED AND DETACHED Detach Analysis Services Database in Command Mode <Detach xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <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. 3

Attach Analysis Services Database in Command Mode <Attach xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Folder>E:\CROOKY_WORKS\Analysis_Services\test2.0.db\</Folder> <ReadWriteMode xmlns="http://schemas.microsoft.com/analysisservices/2008/engine/100">readwri te</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. 4

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 e.g. C:\Program_Files\Microsoft_SQL_Server\MSAS10_50.MSSQLSERVER\OLAP\Backup\ C:\Program Files\Microsoft_SQL_Server\MSAS10_50.MSSQLSERVER\OLAP\Log E:\CROOKY_WORKS\Analysis_Services\test2.0.db 5

3. 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 6

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. 7

Backing up Analysis Services Database in Command Mode <Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object> <DatabaseID>test2</DatabaseID> </Object> <File>E:\CROOKY_WORKS\Analysis_Services\test2.0.db\test2.abf</File> <AllowOverwrite>true</AllowOverwrite> <Password>paxcel@123</Password> </Backup> Backing up Analysis Services Database in GUI Mode 1. Right Click on the Analysis Service Database in dialogue box Backup as shown. 8

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. 9

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:27 ******/ IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=n'database Maintenance' AND category_class=1) BEGIN EXEC @ReturnCode = msdb.dbo.sp_add_category @class=n'job', @type=n'local', @name=n'database Maintenance' IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback END 10 DECLARE @jobid BINARY(16) EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=n'analysis service_backups', @enabled=1, @notify_level_eventlog=0, @notify_level_email=0, @notify_level_netsend=0, @notify_level_page=0, @delete_level=0, @description=n'analysis service_backups', @category_name=n'database Maintenance', @owner_login_name=n'avinash-pc\avinash', @job_id = @jobid OUTPUT IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback /****** Object: Step [SAAS_BACKUP] Script Date: 04/24/2013 23:52:28 ******/ EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobid, @step_name=n'saas_backup', @step_id=1, @cmdexec_success_code=0, @on_success_action=1, @on_success_step_id=0, @on_fail_action=2, @on_fail_step_id=0, @retry_attempts=0, @retry_interval=0, @os_run_priority=0, @subsystem=n'analysiscommand', @command=n'<backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object> <DatabaseID>test2</DatabaseID> </Object> <File>E:\CROOKY_WORKS\Analysis_Services\test2.0.db\test2.abf</File> <AllowOverwrite>true</AllowOverwrite> <Password>paxcel@123</Password> </Backup> ',

@server=n'localhost', @database_name=n'master', @flags=0 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobid, @start_step_id = 1 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobid, @name=n'saas_job', @enabled=1, @freq_type=4, @freq_interval=1, @freq_subday_type=1, @freq_subday_interval=0, @freq_relative_interval=0, @freq_recurrence_factor=0, @active_start_date=20130424, @active_end_date=99991231, @active_start_time=0, @active_end_time=235959, @schedule_uid=n'328e1b34-d23f-4bbb-89ca-3499d79e2512' IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobid, @server_name = N'(local)' IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback COMMIT TRANSACTION GOTO EndSave QuitWithRollback: IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION EndSave: GO 11

Scheduling Backup of Analysis Services Database in GUI Mode through SQL Server Agent 1. Connect To SQL Server Management Studio and then Browse to SQL Server Agent and right click on the new job. 12

2. A new job will appear in the pane and name it as Analysis Service_Backups define owner of the job in this case here owner is AVINASH-PC\AVINASH.Choose category database maintenance and describe your job in description text box and the browse to steps. 13

3. Click on the new button in the steps. 14

4. Name the step and in the type drop down select SQL Server Analysis Service Command and in Run as select SQL Server Agent Service Account and in the Server textbox write your server name and in the command text box enter the following command which will be run by the job <Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object> <DatabaseID>test2</DatabaseID> </Object> <File>E:\CROOKY_WORKS\Analysis_Services\test2.0.db\test2.abf</File> <AllowOverwrite>true</AllowOverwrite> <Password>paxcel@123</Password> </Backup> And then click on ok button. 15

5. Now schedule your job accordingly name the job schedule and scheduling type and its frequency and time and click ok. 16

6. Now at this point we are done refresh your job pane to check the new job which we have added. Restore Analysis Services Database in Command Mode <Restore xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <File>C:\Program Files\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Backup\test2.abf</File> <DatabaseName>test2</DatabaseName> <AllowOverwrite>true</AllowOverwrite> <Password>paxcel@123</Password> <DbStorageLocation xmlns="http://schemas.microsoft.com/analysisservices/2008/engine/100/100">e:\ CROOKY_WORKS\Analysis_Services\test2.0.db\</DbStorageLocation> </Restore> 17

Restore Analysis Services Database in GUI Mode 1. Right click on the database button and dialogue box will show restore option click on it. 2. Click on the browse option to browse the backup file. 18

3. Select the path where we have taken backup and name backup file having extension.abf as shown and click OK. 19

4. In restore database write your database name and data directory path from the list of available data directories available in browse section since we have deleted over database so we are opting for Allow database overwrite option.there is option for overwrite security information u can check it also but it is not mandatory select copy all option and the give the password at the encryption part as shown which was given when to database was being backed.then click on OK button to complete the restore process. 20