It turned out that for time being the CTP2 of SQL Server 2008 R2 which I announced yesterday is available for TAP participants only. It will be publicly available on Wednesday. Meanwhile, Robert Bruckner listed the new Reporting Services features which got implemented in CTP2. The biggy is the new map region that lets you visualize geospatial and geometry data.
In my first book I had a sample that demonstrated how to export a report as a data feed. Well, in R2 this will be natively supported. Reports as data feeds, anyone? Visual Studio 2010 Beta 2 will include an AJAX Report Viewer. I would hope for a Silverlight version but one step at a time.
Again, post your KJ-related question to the Reporting Services forum.
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-08-11 11:49:572016-02-17 09:28:20New Reporting Services Features in SQL Server 2008 R2 CTP2
The SQL Server R2 (Kilimanjaro) discussion forums went live today. Your humble correspondent is the moderator of the Reporting Services forum. SQL Server R2 CTP 2 should be out on connect.microsoft.com shortly. Looking forward to your feedback!
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-08-10 14:10:002016-02-17 09:42:04SQL Server R2 Forums Available
So, how’s this not cool? Running SharePoint integrated with Reporting Services on Windows Vista! I’ve always had a grudge with SharePoint that it doesn’t run on a desktop OS. This forces you to install Windows Server or use a virtual image, both options far from ideal. When I went to TechEd I blurted by disappointment to a couple of SharePoint gurus who clued me in (this is why we go to conferences, right, to learn the latest hacks) but I didn’t have time to try it … until today.
The solution is to use the Bamboo’s workaround (OK, an ingenious hack) but it works like a charm. What about Windows 7 which has recently RTM’ed? Bamboo took care of that as well. I hope Microsoft will take a note and finally support officially SharePoint on a desktop OS. If SQL Server can scale down all the way to mobile devices, so should SharePoint.
Bamboo made my day today!
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-08-07 23:16:002016-02-17 09:44:16SharePoint Integrated with Reporting Services on Windows Vista
Reporting Services charting not enough? Nevron Software has released a Nevron Charting for Reporting Services which I haven’t personally tested yet. According to the vendor, here are the major features where Nevron excels in comparison with Reporting Services charting:
– Speed – Nevron Chart for SSRS is the fastest rendering chart inside Reporting Services – in both 2D and 3D modes.
– 3D Charting – Nevron Chart for Reporting Services has the best layout in 3D and the most advanced feature set in 3D – including: 11 predefined lighting modes, ability to specify element materials (control the way in which elements reflect light), largest charting types set in 3D, biggest set of shapes in 3D (applicable to pies, bars, markers, areas etc.).
– 2D Charting – Nevron Chart for Reporting Services is the only chart for Reporting Services to provide Adobe Photoshop like image filter effects, which are applicable to all chart elements – these include bevel, emboss, lighting filters etc. When it comes to shadows it is the only chart for Reporting Services which has soft shadows (based on Gaussian and Radial blur image filters).
– 2D/3D Consistency – Nevron Chart for Reporting Services is consistent in 2D/3D modes. For example you can map gradients, textures to elements in both 2D and 3D. Colors specified in 2D are inherited by materials in 3D. You can mix 2D and 3D chart areas in a single chart control.
– Visual Effects – Nevron Chart for SSRS introduces numerous Lighting Models; Orthogonal Projection with Depth Offset (perfect for creating 2D half imitation charts); Soft Shadows based on image filters; Blur, Glow, Lighting, Bevel and Emboss image filters.
– Numerous XY and XYZ scatters – Nevron Chart for SSRS includes the industry leading support for XY and XYZ scatters inside Reporting Services.
– XML Formatted Texts – Nevron Chart for Reporting Services supports XML Formatted Texts. This feature is applicable to all elements which display text. It allows you to mix fonts, mix bold, italic underline formatting and many other advanced features like different fill styles, shadows, image filters etc. – all inside a single label, title etc. XML formatted texts use a format similar to HTML, but with many more advanced options.
– Multithreaded UI – The user interface in design time is multithreaded. This allows for very quick editing of the component, regardless of the preview complexity
– Save/Load Templates (available in Vol.2).
– Ability to inject custom code and to author the generated chars programmatically (code editor) (available in Vol.2).
Unique charting types:
– Surface Chart Series (Grid, Mesh and Triangulated).
– XYZ Scatter Series (Bar, Line, Point, Bubble, Float Bar).
– Financial charting types Renko, Kagi, Three Line Break, Point and Figure (available in Vol.2).
Major Chart Axis Features:
– Multiple X and Y Axes.
– Axes can be docked or crossed.
– Many scale options including support for Categorical, Hierarchical, Logarithmic, Numeric, Date/Time and Time Line scales.
– Control over the range and appearance axes.
– Scale sections
Nevron is also working on SharePoint charting which will combine their charting technology with the new Nevron Pivot Data Aggregation engine.
Some of you shared with us your frustration with training budgets cut in half. Many of you couldn’t attend industry conferences this year. Many of you asked how we can help.
We are excited to offer online Business Intelligence classes – no travel, no hotel expenses, just 100% content delivered right to your desktop!
Our first class is Applied Reporting Services 2008. This three-day intensive event teaches you the knowledge and skills you need to master Reporting Services to its fullest.
Applied Reporting Services 2008 Online Training Class with Teo Lachev
Date: August 31 – September 2, 2009 Time: Noon – 4 pm EDT; 9 am – 1 pm PDT 12 training hours total for only $799!
Attend this class for only $799 and get a free paper copy of the book Applied Microsoft SQL Server 2008 Reporting Services by Teo Lachev!
For more information or to register click here!
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-07-28 23:48:002021-02-16 03:45:24Applied Reporting Services 2008 Online Training Class with Teo Lachev
Microsoft released today a Cumulative Update 3 for SQL Server 2008 Service Pack 1. Among other things it fixes the Report Builder 2.0 ClickOnce deployment issue on x64 which I reported here.
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-07-21 16:44:592016-02-17 10:01:12Cumulative Update 3 for SQL Server 2008 Service Pack 1
An issue was reported about page numbering and exporting reports to Excel with Reporting Services 2008. Specifically, if the page header or footer uses a placeholder for the page number, when exported and previewed in Excel, the report will show Page 1 on all pages.
Page [&PageNumber] of [&TotalPages]
While waiting for Microsoft to fix this, use an expression that concatenates the PageNumber member of the Globals collection.
= “Page” & Globals!PageNumber & ” of “ & Globals!TotalPages
To enter the expression, select the textbox item, right-click and choose Expression.
On a different subject, you’ve probably heard the news: Google will release an operating system called Google Chrome OS which will challenge Windows and instill fear into the Microsoft camp. To the contrary, I think Google is the best thing that ever happened to Microsoft. How come?
I remember reading somewhere that after the perestroika, Mikhail Gorbachev had supposedly told Ronald Reagan “we’ll now do the worst thing to you (USA); we’ll leave you without enemy”. Perhaps, too extreme but paraphrased to business, completion is a good thing. When challenged, good companies become better, products improved and consumers benefit. So, I hope Google will continue expanding their ambitions. Similarly, I hope Microsoft gives Google a run for its money by competing relentlessly to increase their share of the search market. I’d personally love to see business intelligence features added to the search results. Why not, the first two letter s of bing are BI, right? How come I can’t even sort the search results by date to see the most recent matches on top? A chart showing the popularity of the search item over time? People who searched for X searched also for Y?
It will be interesting to see how this mega competition will evolve in time. As Chinese say “may you live in interesting times”.
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-07-08 23:07:202016-02-17 10:03:16Google – The Best Thing that Ever Happened to Microsoft
I often need to capture an MDX query that a report sends to Analysis Services and execute it in SQL Server Management Studio (SSMS). I usually do this to understand what parameters the report passes to the query and to troubleshoot the query itself. Unfortunately, SSMS doesn’t support parameterized MDX queries so you have to resort to the following technique:
Capturing MDX Queries
The easiest way to capture an MDX query is to use the SQL Server Profiler.
Start SQL Server Profiler from the Microsoft SQL Server <version>-> Performance Tools program group.
Click File -> New Trace or press Ctrl+N.
In the Connect To Server dialog box, choose Analysis Services, enter your server name, and click Connect.
In the Trace Properties dialog box, click the Event Selection tab. Check the Show All Events and Show All Columns checkboxes.
Optionally, if you want to see only your events, that is events triggered by your actions only, click the Column Filters button. In the Edit Filter dialog box, select NTUserName. Expand the Like tree node on the right and enter your Windows login surrounded by %, e.g. %t_lachev%.
Back to the Trace Properties dialog box, click Run to start the trace.
Now run the report whose queries you want to capture and watch the profiler output for a Query Begin event.
Typically, a report would execute several MDX queries because there will be queries for the report parameters. You can use the profiler find function (Ctrl+F) to search for the query text you need in the TextData column in order to find the report main query (that one that supplies the report with data).
Selec t the Query Begin event of the query you want. In the lower pane of the profiler, you will see the query MDX statement followed by Parameters and PropertyList nodes, such as:
WITH MEMBER MyKPI as StrToMember( @KPISelector)
SELECT NON EMPTY {MyKPI} ON COLUMNS,
NON EMPTY StrToSet(@Dataset)
* StrToMember(@StartPeriod) : StrToMember(@EndPeriod) ON ROWS
Click anywhere in the lower pane and press Ctrl+A to select all text, then Ctrl+C to copy it to the clipboard.
Testing MDX Queries
Now that you have the query, you are ready to test it in SSMS.
Open SSMS and connect to the Analysis Services server.
Right-click on the SSAS database and click New Query -> MDX to open and create a new MDX query. Press Ctrl+V to paste the query text that you captured in the profiler.
Since the profiler escapes certain characters, first you need to unescape them. For example, replace (Ctrl+H) all & with &.
One by one, go through the parameters listed in Parameters node and replace the parameter placeholder in the MDX query with the actual value. For example, press Ctrl+H to search for @KPISelector (note that the parameters are prefixed with @ in the MDX query) and replace all occurrences (Replace All option) with the actual parameter value. Since typically SSRS MDX queries use StrToMember or StrToSet functions, you need to surround the parameter values with quotes, e.g. “[Measures].[Return On Average Assets]”.
Once you replace all parameters, comment the Parameters and PropertyLists nodes by selecting all text in these nodes and clicking the Comment Out the Selected Lines toolbar button. The only text that it not commented should be the MDX query text.
At this point, you can execute the query by pressing Ctrl+E or clicking the Exclamation toolbar button.
UPDATE
When things get tedious, the developer writes a program. As Greg Galloway pointed out, Darren Gosbell has already written a small but incredibly useful utility, SSAS Query Capture, that automates the process of capturing the queries and replacing the parameters. Moving forward to Visual Studio 2008 and SQL Server 2008, you need to:
Upgrade the source code to Visual Studio. To do so, just open the C# source project in Visual Studio 2008 and accept the defaults.
Delete the Microsoft.AnalysisServices and reference Microsoft.AnalysisServices.dll which you can find in the \Program Files\Microsoft SQL Server\100\SDK\Assemblies\ folder.
Build the project and run QueryCapture.exe in the bin\debug folder.
A cautionary note: The utility always encloses the parameter values in quotes because it assumes that they will be inside the StrToMember and StrToSet functions which SSRS MDX Query Designer generates when you add parameters. If you reference parameters literally, as I demonstrated in this blog, remove the quotes surrounding these parameter values. Otherwise, the chances are that the query will return no data.
I couldn’t imagine how much time Darren’s Query Capture utility could have saved me if I only knew about it! I hope he adds it to the BIDS Helper project.
https://prologika.com/wp-content/uploads/2016/01/logo.png00Prologika - Teo Lachevhttps://prologika.com/wp-content/uploads/2016/01/logo.pngPrologika - Teo Lachev2009-07-06 14:04:342016-02-17 10:04:06How to Test SSRS MDX Queries in SQL Server Management Studio