惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
I
InfoQ
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
美团技术团队
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
Last Week in AI
Last Week in AI
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
云风的 BLOG
云风的 BLOG
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
G
Google Developers Blog
博客园 - 叶小钗
博客园 - Franky

博客园 - 大斌锅

另一个世界,我只是个守望者 Cluster 防止电子眼拍到车牌的秘籍 查看语句运行时间异常的原因(SQLServer) 转 多希望。。。 SQL SERVER2008跟踪标志 shit reporting service!!! MSChart 基于AppDomain的"插件式"开发 转 精品英语听力资料下载!(每天有数万人在找这些资料) 转载:动态调用WebService(C#) 动态调用 WebService 1 转 Intel 6系列芯片组设计缺陷 全球出货暂停 Desperate housewives 圣斗士星矢 10086狗把卡吃了 Query Performance Tuning (SQL Server Compact) Clear Analysis Services (SSAS) database cache - 大斌锅 那些令人喷饭的注释
SSAS SESSION
大斌锅 · 2011-02-18 · via 博客园 - 大斌锅

In my last post I listed changes that are expected in SSAS 2008 next CTP 4. But it looks like none of the changes made into July CTP. They probably were postponed last minute. Even new Microsoft documentation (read Chris Web  blog) lists some of the features as present. For example block computation is listed in documentation, but just today in webcast I saw block computation example where in CTP4 it took query to execute 1min, and in new SSAS build the same query come back in a few seconds. So I hope that all changes listed in my previous post will be in the next CTP5, that is targeted for September 18th release (during PASS conference).

Today there was another good webcast presentation “The value of Business Intelligence with SQL Server 2008” by Julie Strauss (Product Manager) & Donald Farmer (Principal Program Manager). From this presentation I got more info on 2 new enhancements (not listed in my previous posts) that we should expect in the next CTP.

First of all, we should expect enhancements to aggregation designer. Algorithm that builds aggregations will be improved, there will be support for manual edit/create/delete of aggregations and we should be able to see what aggregates were designed. Also aggregation designer will have built-in validations for optimal design assistance. In my opinion this is very welcome change as I absolutely would love to have much better control on what aggregations are build.

And the another new enhancement will be DMV (Data Dynamic Management Views) that we will be able to use to access information about Analysis Services. As I understood, there will be something like “Default Resource cube”, that DMV will query and come back with useful information. During webcast presenter demonstrated 2 views:

  • $system.discover_connections
  • $system.discover_sessions

To access DMV, you simply write SELECT statement:

SELECT * FROM $system.discover_connections

Below are example of queries that list just some (!) of the columns available in these DMVs:

SELECT
connection_id
, connection_user_name
, connection_host_application
, connection_start_time
FROM $system.discover_connections

SELECT
session_id
, session_spid
, session_user_name
, session_last_command
, session_start_time
, session_cpu_time_ms
, session_reads
, session_writes
, session_status
, session_current_database
, session_used_memory
, session_properties
, session_start_time
, session_elapsed_time_ms
, session_last_command_start_time
, session_last_command_end_time
FROM $system.discover_sessions

As you can see there is a lot of info in session records. For example it is quite easy to get session ID and resources used by the session.

To list SSAS sessions that are currently active you can filter session DMV using WHERE session_status = 1:

To kill session, get session id from DMV and execute XMLA:

<Cancel xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine“>
  <SPID>###HereGoesSessionID###</SPID>
</Cancel>

Note: In 2008 cancel is reliable and should kill session instantly.

To get a list of columns available in DMV you can execute following queries: 

select * FROM $system.DBSCHEMA_columns WHERE table_name = ‘discover_sessions’
select * FROM $system.DBSCHEMA_columns WHERE table_name = ‘discover_connections’

I am sure DMVs will be very big help in finding runaway queries and monitoring SSAS.