PowerPivotGeek?

Who is this mystery man?
Click on the icon to find out. Who is powerpivotgeek?

What is a “snapshot” when you enable client-side tracing

In getting ready for a recent internal presentation on PowerPivot, I was asked what this button actually does . . . (see below)

image

The primary purpose for the settings page is to setup diagnostic tracing. The trace file itself is pretty straightforward, it is the regular SSAS tracing subsystem that we know and love . . . get ready to spin up SQL Profiler to read it. But the most common question that I get is “What is that snapshot thing??”.

image

The best ‘geek’ answer is the code snippet that generates it:

GetSchemaInformation(connection, "DISCOVER_OBJECT_MEMORY_USAGE");
GetSchemaInformation(connection, "DISCOVER_OBJECT_ACTIVITY");
GetSchemaInformation(connection, "DISCOVER_COMMAND_OBJECTS");
GetSchemaInformation(connection, "DISCOVER_STORAGE_TABLES");
GetSchemaInformation(connection, "DISCOVER_STORAGE_TABLE_COLUMNS");
GetSchemaInformation(connection, "DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS")

As you can see, what it does is to send a series of XMLA Discover commands to the embedded SSAS engine, listing what objects are being used, how often, and what their sizes are. All of it great info . . .

Enjoy!

  • Share/Bookmark

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>