SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Unable to stop a job running "sql server analysis services command"


Unable to stop a job running "sql server analysis services command"

Author
Message
patamons
patamons
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 132
Hello,

From time to time, a SQL Server job with a step type "sql server analysis services command" is running for ever.

If I try to stop it, SQL Server returns "job stopped successfully" but the job is still shown as running and cannot be restarted (job already running). The only way to really stop it is to restart the SQL Server agent. Is there a way to really stop this Sql server analysis command ?
patamons
patamons
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 132
The solution is here : http://sqlmag.com/reporting/managing-analysis-services-activity-14-feb-2010

To show running queries, execute this MDX query :

SELECT * FROM $SYSTEM.DISCOVER_COMMANDS
order by command_start_time
GO
SELECT * FROM $SYSTEM.DISCOVER_SESSIONS
GO
SELECT * FROM $SYSTEM.DISCOVER_CONNECTIONS
GO

Find the forever running query using command_start_time and COMMAND_TEXT.

And then kill the query started by the SQL job using this XMLA query :

<Cancel xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ConnectionID>xxxx</ConnectionID>
</Cancel>


Thanks a lot Derek !
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search