Unless you're dealing with completely static data, you're going to want to set up an automatic refresh of your SSAS cube on some sort of schedule. Here's how you can get a full refresh going on a regular basis:
- Make sure that permissions to your SSAS server are set up properly to allow the agent to trigger the refresh. Your service account should be added as a server administrator.
- Create a new SQL Server Agent job.
- Add one or more schedules on the Schedules page.
- Add a step of type 'SQL Server Analysis Services Command'.
- Choose your service account under 'Run as'.
- Enter the URL for your SSAS server under 'Server'.
- Enter the following as the command, making sure to edit the "database" value to match the name of your SSAS cube:
{
"refresh": {
"type":
"full",
"objects": [
{
"database":
"NameOfYourSSASCube"
}
]
}
}
0 comments:
Post a Comment