-
Book Overview & Buying
-
Table Of Contents
SQL Server Analysis Services 2012 Cube Development Cookbook
By :
If you have managed SQL Server or other relational database systems, you should be familiar with the unambiguous KILL command that disconnects the offending session and terminates the query executed on that session. Analysis Services has a similar statement, though it uses a somewhat milder term, CANCEL, perhaps more appropriate for the type of operation it performs. After all, the impact of terminating the session isn't always immediate, even in relational systems. If a user is running a large transaction affecting thousands or millions of records, it could take a long time to roll such transactions back. The CANCEL command is also different from KILL in a sense that it doesn't immediately terminate the session or query. Rather it tags the session to be terminated. SSAS periodically checks sessions and takes action on those sessions that have been tagged.
You can terminate a session using SSMS or ASCMD by performing the following steps:
Query $system.DISCOVER_SESSIONS...
Change the font size
Change margin width
Change background colour