分析 DB に新しいロールを作成しようとしています。
私は複数の組み合わせをテストしました:
Openrowset => で単純な MDX クエリを実行すると動作します。
実行すると動作します。
openrowset=> ERROR を使用して SQl リレーショナル DB から新しい SSAS ロールを作成しようとすると。
ここに私が試しているコードがあります
SELECT * FROM OpenRowset('MSOLAP', 'DATA SOURCE=servername; Initial Catalog=AnalysisDBName;',
'
<Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ParentObject>
<DatabaseID>AnalysisDBName</DatabaseID>
</ParentObject>
<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">
<ID>Role 22</ID>
<Name>Rolename</Name>
</Role>
</ObjectDefinition>
</Create>
')
私が受け取るエラーは次のとおりです。
OLE DB provider "MSOLAP" for linked server "(null)" returned message "A required child element is missing under Envelope/soap:Body at line , column (namespace 'http://schemas.xmlsoap.org/soap/envelope/'). One of Fault, AuthenticateResponse, DiscoverResponse, ExecuteResponse was expected.".
Msg 7321, Level 16, State 2, Line 2
An error occurred while preparing the query "
<Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ParentObject>
<DatabaseID>AnalysisDBName</DatabaseID>
</ParentObject>
<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">
<ID>Role 22</ID>
<Name>Rolename</Name>
</Role>
</ObjectDefinition>
</Create>
" for execution against OLE DB provider "MSOLAP" for linked server "(null)".
助けてください:)
よろしく、エリー