![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there anyway to list and kill MD queries? The use case is: User X starts a query that, in hindsight, takes 30 minutes to execute. But User X gave up after 4 minutes and tries to run the query again. So now there are 2 queries fighting for CPU and resources and the performance just drops from there. I happen to be running these queries over XMLA but the problem may be wider and that is how does one stop executing a query that one is no longer interested in? Stopping and starting the whole server seems a little extreme, is that the only answer? -z |
#3
| |||
| |||
|
|
Look in the Analysis Services Operations Guide: http://www.microsoft.com/technet/pro.../anservog.mspx It has a section called "Monitoring User Access" on this topic. To kill a query, all you need to do is to disconnect the underlying TCP/IP connection (I think that I suggested using the http://www.sysinternals.com TCPView utility to do this) -- but I should warn you, that this just signals the service that the user has gone away, if there are outstanding SQL or internal Analysis Services operations that are currently active, it won't be until they have been satisfied that the service detects that the user has gone away and will clear up resources. So this can take some time for the "KILL" to really happen, and in some cases, it might not happen for the equivalent time needed to satisfy the query anyway. |
![]() |
| Thread Tools | |
| Display Modes | |
| |