Domanda

What is the way in TSQL to run the XMLA code to process a cube

XMLA:

<Process xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Object>
    <DatabaseID>Adventure Works DW</DatabaseID>
  </Object>
  <Type>ProcessFull</Type>
  <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
È stato utile?

Soluzione

I use this way:

  1. Create a new Job in SQL and put the XMLA statement in a SQL Server Analisys Services Command
  2. Execute this job from your sp with:

exec msdb.dbo.sp_start_job 'Job Name'

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top