dbTalk Databases Forums  

Urgent: setting a timeout property to MDX query or STOP a mdx query

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Urgent: setting a timeout property to MDX query or STOP a mdx query in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dev B
 
Posts: n/a

Default Urgent: setting a timeout property to MDX query or STOP a mdx query - 10-19-2005 , 11:14 AM








Hello All, I am very new with MDX queries and stuck out with one
place..your help is needed. we are having a application built in
ASP.NET, at one place the MDX query is getting very much time to get
executed and we dont want to sit the user who is accessing that query
from web, so we need to set timeout property for that query hence for
certain time limit if the result doesn't come up that query get stop and
user can have message. We tried a lot but no one option is working, so
please guide how do we sent timeout property. Here is the code..


Dim cnolap As New ADODB.Connection
Dim cell As New ADOMD.Cellset
cnolap.Open(ConfigurationSettings.AppSettings("con nectionMD"))
cell.ActiveConnection = cnolap

cell.Open(mdxqry)

session("cell")=cell
response.write("Complete")
Response.Flush()


*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Urgent: setting a timeout property to MDX query or STOP a mdx query - 10-19-2005 , 12:58 PM






You will need SP4 of AS in order for the following to work:


cnolap.Open(ConfigurationSettings.AppSettings("con nectionMD") + ";Timeout="
+ ConfigurationSettings.AppSettings("queryTimeout"))


--
==============================*=================== =
Mosha Pasumansky - http://www.mosha.com/msolap
Analysis Services blog at http://www.sqljunkies.com/WebL*og/mosha
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==============================*=================== =
"Dev B" <bdplindia (AT) yahoo (DOT) com> wrote

Quote:

Hello All, I am very new with MDX queries and stuck out with one
place..your help is needed. we are having a application built in
ASP.NET, at one place the MDX query is getting very much time to get
executed and we dont want to sit the user who is accessing that query
from web, so we need to set timeout property for that query hence for
certain time limit if the result doesn't come up that query get stop and
user can have message. We tried a lot but no one option is working, so
please guide how do we sent timeout property. Here is the code..


Dim cnolap As New ADODB.Connection
Dim cell As New ADOMD.Cellset
cnolap.Open(ConfigurationSettings.AppSettings("con nectionMD"))
cell.ActiveConnection = cnolap

cell.Open(mdxqry)

session("cell")=cell
response.write("Complete")
Response.Flush()


*** Sent via Developersdex http://www.developersdex.com ***



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.