July 21, 2005 at 12:31 am
Hi all,
Is it possible to re-process a cube (refresh mode) using command line instead of using Analysis Manager?
What I want to do is to use a T-SQL stored procedure to query the cube, but before querying I would like to re-process the cube to make the underlying fact table updated. The underlying fact table is dynamically loaded with data according to some parameters used ar arguments in the stored procedure.
Thanks,
delpiero
July 21, 2005 at 2:40 am
Why not use the functionality in dts. You can call that from t/sql via xp_cmdshell
July 21, 2005 at 3:01 am
Do u mean refresh the cube through DTS and then call the DTS package through xp_cmdshell? But can you tell me how to refresh the cube through DTS?
Thanks,
delpiero
July 21, 2005 at 3:10 am
I can use DTS Export/Import wizard to choose a SQL Server table as source, and an OLAP Analysis Services cube as destination, but it does not allow me to export the data, saying something like "No such interface supported" .......
delpiero
July 21, 2005 at 3:10 am
You need to use the "Analysis Services Processing Task" (is the cube icon on the task section).
For more information search "Analysis Services Processing Task" in Books Online.
July 21, 2005 at 3:17 am
The only task you need in the DTS is the one to re-process the cube in "refresh mode", because everything else must be done in the SP. I.e., in the SP before quering the cube use the xp_cmdshell to execute the DTS.
July 22, 2005 at 4:11 am
Thanks Jonathan and Tiago, I have got the solution from your advice.
Just one more issue, I granted execute privilege of my T-SQL stored proc to the APP_USER database user who is the user by which the application connects. This user has no execute privilege on the xp_cmdshell extended stored procedure.
How can I grant the execute privilege of xp_cmdshell (which is in the master database) to a database user ( or database role ) which belongs to the user database?
Thanks,
delpiero
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply