Sql-Server

SSAS - 如何編寫正常設置腳本?它們儲存在哪裡?如何查詢它們?

  • October 7, 2016

我相信我是伺服器 BIREPLON1 SSAS 的管理員,如下圖所示。

在此處輸入圖像描述

這些安全權限可以很容易地編寫腳本。

這是一個例子:向水平滾動道歉,但事實就是這樣。

<Batch xmlns='http://schemas.microsoft.com/analysisservices/2003/engine' Transaction='true'>
   <Alter AllowCreate="true" ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
       <Object />
       <ObjectDefinition>
           <Server xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400">
               <ID>SASBIDEV01</ID>
               <Name>SASBIDEV01</Name>
           </Server>
       </ObjectDefinition>
   </Alter>
   <Alter AllowCreate="true" ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
       <Object>
           <RoleID>Administrators</RoleID>
       </Object>
       <ObjectDefinition>
           <Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400">
               <ID>Administrators</ID>
               <Name>Administrators</Name>
               <Members>
                   <Member>
                       <Name>mycompany.CO.UK\BIUsersDEV</Name>
                   </Member>
               </Members>
           </Role>
       </ObjectDefinition>
   </Alter>
</Batch>

有沒有辦法編寫“正常”選項卡上的設置腳本,如下圖所示?

否則,

這些權限儲存在哪裡?

如何查詢它們?

在此處輸入圖像描述

您正在查找的設置儲存在**msmdsrv.ini**

\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Config\msmdsrv.ini

要麼<your Analysis service custom path>\OLAP\Config\msmdsrv.ini

注意:以上路徑適用於預設安裝。

如果您要更改任何配置值,創建該文件的備份是一個很好的做法。

引用自:https://dba.stackexchange.com/questions/107217