Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Issue while creating offline cube using code behind

$
0
0

Hi All,

I am facing an issue while creating offline cube (.cub) file with my code behind.

I have two different servers. One is DB server where i have all my DBs and SSAS installed and other one is web server with code in IIS.

In one of my screen I am trying to execute MDX query to create offline cube, I am following these steps:

1. Initializing AdomdConnection connection.
2. Initializing AdomdCommand object and giving object above connection.
3. Setting CommandText = MDX query.
4. Executing command using command object.Execute();

I am facing issue while executing command object.Execute(), it does not execute query all the time. I found first or second time it execute successfully and if I try to execute more than 3-4 times it gets stuck and never finish the execute process.

Also it never goes to the catch block, instead it goes to login after timeout.

Please let me know if anyone face this issue before or anyone have any suggestion/solution.

Thanks



Viewing all articles
Browse latest Browse all 14337

Trending Articles