Save up to 35% for the PASS European Conference

2010PASSEurope_Home

The Belgian SQL Server User Group offers a significant 35% discount for its members (even more than early bird discount) for any PASS European Conference 2010 registration. Use discount code BEC15Y and enjoy your savings on your registration. For more information check our SQLUG website. PASS European Conference 2010 is Europe’s premier conference for SQL Server technical education and business networking. Meet top SQL Server experts from Europe and around the world. Learn about best practices, effective troubleshooting, how to prevent issues, save money, and build a better SQL Server environment for your company or clients.

  • Share/Bookmark
Mar 4th, 2010 | Filed under Event, Events, SQL 2008 R2, SQL Server, SQLUG.BE
Tags:

Reporting Services Timeout in Sharepoint

Recently someone asked me to check a Reporting Services report that always resulted in an Unexpected Error. The report server was configured for Sharepoint Integrated Mode.

I came to the conclusion that the server always returned this error after exactly 2 minutes, so it had to be a timeout exception.

The report was kind of big, so tuning it would not really help (enough).

I took me some time to find out which timeout setting to change, because there seem be a lot of them:

There is the Query Execution timeout of the Dataset, a Report Execution timeout, the Connection timeout of IIS, other timeouts in the Report Server Configuration file, …

But the real cause of this timeout is an Execution timeout of Sharepoint.

You can change this timeout setting in the web.config of your Sharepoint site, by default in c\:inetpub\wwwroot\wss\VirtualDirectories\80.

In this web.config you will find an XML node called “httpRuntime”. In this node you have to add an extra tag: executionTimeout=”9000″:

<httpRuntime maxRequestLength=”51200″ executionTimeout=”9000″ />

Save and close the file and do an IISReset. When you run the report again, you won’t get this error anymore.

I also checked the web.config of the Report Manager, but in Native Mode this seems to be the default:

Good luck!

  • Share/Bookmark

February 11th, next UG-evening on Service Broker

SQL Server Service Broker and some of the things it can do for you” is brought to you by Nico Jacobs and will take place on February 11th. Since SQL server 2005, it is possible to build a Service Oriented Architecture (SOA) inside SQL Server.

The component that enables this is the service broker, a message based system which allows for dialogs between two SQL server instances. In this session, we will first introduce the terminology and features of this framework, then we will discuss some of the scenarios in which it can be used, and we will conclude by implementing a small service broker application. Dr. Nico Jacobs was a researcher at the Computer Science department, KULeuven for seven years, where he obtained his PhD in machine learning (data mining). Since 2004, he is trainer and consultant at U2U, where he focuses primarily on SQL Server and the Business Intelligence back-end.

Free registration is now open.

  • Share/Bookmark
Jan 18th, 2010 | Filed under Event, SQL Server

SQL Server Day 2009 videos now available on Chopsticks

SSAS: Custom format string for “duration” using MDX

I recently struggled with the following challenge in Analysis Services:
In one of the fact tables there was a field duration which actually was a duration of a certain status in seconds. I needed to display this in a readable format, like “2 days 22:15:59″.

bing brought me to the following great article, where Mosha explains how you can use MDX to create a custom format:
http://sqlblog.com/blogs/mosha/archive/2008/09/26/displaying-duration-values-mdx-expressions-in-format-string.aspx

When you apply this for a calculated member you get something like this:

    CREATE MEMBER CURRENTCUBE.[Measures].[DurationInDays]
     AS [DurationInDays],
    FORMAT_STRING =  
        IIF([Measures].[Duration] < 1
         ,’”0 days” hh:mm:ss’
         ,’”‘ + cstr(int([Measures].[Duration])) + ‘ days” hh:mm:ss’)
    ,
    VISIBLE = 1;

But this brings us to another problem:
This custom format will only display the correct result if [Measures].[Duration] contains decimal seconds.
For more information about the conversion from seconds to decimal seconds, read the following article on wikipedia: http://en.wikipedia.org/wiki/Decimal_time
In short, you need to divide the number of seconds by 86.400. The resulting number presents the number of days on the left side of the decimal separator and the remaining decimal seconds on the right side.

So the final result will be something like this:

    CREATE MEMBER CURRENTCUBE.[Measures].[DurationInDecimalSeconds]
     AS
        [Measures].[DurationInSeconds] / 86400,
    VISIBLE = 0;  

    CREATE MEMBER CURRENTCUBE.[Measures].[DurationInDays]
     AS [Measures].[DurationInDecimalSeconds],
    FORMAT_STRING =  
        IIF([Measures].[DurationInDecimalSeconds] < 1
         ,’”0 days” hh:mm:ss’
         ,’”‘ + cstr(int([Measures].[DurationInDecimalSeconds])) + ‘ days” hh:mm:ss’)
    ,
    VISIBLE = 1;

If you want this custom format to be displayed in Excel, make sure the connection properties are set correctly to retrieve the number format from the server:

Go to Connection Properties, tab Usage, and check Number Format in the OLAP Server Formatting options.

image 

There is one more thing I would like to tell you about these options: Normally all these options will always be checked by default, but I’ve noticed that when you start from an existing odc-file, this is not the case. So, when you’re used to deliver an odc-file to your users to start analyzing from Excel, you will have to replace this odc-file by an Excel template that connects to the cube, to make sure this option is always on.

There might be a better way to change this behavior for odc-files, but I couldn’t find any. If you know it, please let me know ;)

 

Enjoy!

  • Share/Bookmark

SQL Server Day 2009, now with a third track, fully focused on Development

We are very proud to announce you that, because of the huge success and because of the numerous registrations, we’ve added an additional track to our agenda, which makes SQL Server Day 2009 an entire day, jam-packed with technical sessions spread over 3 tracks, namely Business Intelligence, the SQL Data Platform and Development. 6 break-out sessions and a mix of the best national and international speakers will guarantee an extraordinary journey into the deepest secrets of your SQL Server environment.
From Policy Based Management, through Designing Effective aggregations in Analysis Services 2008, to Powerpivot (aka Gemini) and much, much more. We assure you that the subjects will help you and your enterprise reach a higher level in your BI and SQL Server environment.
All you need to do is visit sqlserverday.be where you can register, find details about the speakers as well as the session abstracts.
See you December 3th @ Utopolis Mechelen.

clip_image001SQL Serverday 2009

  • Share/Bookmark
Nov 17th, 2009 | Filed under Uncategorized
Tags:

SQL Server Day 2009

logo sql serverday 2009

On Thursday, the 3rd of December 2009 SQLUG.BE (The Belgian SQL Server User Group) and Microsoft are teaming up to organize the second Belgian SQL Server Day. Focus of the day is off course SQL Server.

Last year, SQL Server Day 2008 was the biggest community driven SQL Server event in the Benelux, with more than 200 attendees.

The event will kick-off with an international speaker positioning the SQL Server data platform, today and tomorrow.

We have 6 break-out sessions with technical content on SQL Server. The speakers are recognized international SQL Server experts; including Dirk Gubbels, Chris Webb, Henk van der Valk, …

During the lunch break our gold partners will present their solutions and offerings in the lightning sessions.

We conclude the day with a closing keynote on Gemini, the new breakthrough Self-Service Business Intelligence (BI) capabilities being delivered in SQL Server 2008 R2.

Full details and registration are available on www.sqlserverday.be

  • Share/Bookmark
Oct 14th, 2009 | Filed under Event, SQL 2008 R2, SQL Server, SQLUG.BE

Connect to SSIS Service failed: Error loading type library/DLL

After installing SQL Server Integration Services on an existing 64-bit SQL Server, I was unable to connect to SSIS using Management Studio.

The database engine and Analysis Services was already installed on this server. I added the SSIS service without Service Pack and applied SP3 afterwards. When trying to connect, Management Studio returned the following error message:

Connect to SSIS Service on machine “ComputerName” failed:
Error loading type library/DLL.

I found the explanation in the following support article: KB919224

This problem occurs because the installer unregisters the 32-bit Dts.dll file when the installer installs the 64-bit Dts.dll file. The 64-bit Dts.dll file is installed together with SQL Server 2005 SP2. Additionally, the 64-bit Dts.dll file may be installed together with any SSIS hotfix package that contains the 64-bit Dts.dll file.

The solution is to reregister the 32-bit dll’s manually:

%windir%\syswow64\regsvr32 “%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll”

%windir%\syswow64\regsvr32 “%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\MsDtsSrvrUtil.dll”

For more info and some variations on the same problem, goto KB919224

  • Share/Bookmark

Administrator has no access to the Report Manager (SQL2008 R2 and Windows7/Vista)

Today I wanted to start playing around with the new Report Manager of SQL 2008 R2.

After installing and configuring R2, I opened Internet Explorer and entered the URL of the Report Manager. In my case: http://localhost/reports_r2

I got a very empty Report Manager :-) :

report manager access  denied

Okay, something is wrong. I tried to connect to http://localhost/reportserver_r2 :

report server access denied

No access? But I am admin of this PC… Wait a minute. By default, programs are never executed as an administrator in Windows 7 or Vista. That explains it!

Here is how you can solve this:

  • Open Internet Explorer as an administrator: click right and select “Run as Administrator”.
  • Click “Yes” to allow.

Now, if you don’t want to do this every time you want to use the report manager, follow these steps:

  • Add “http://localhost” to the trusted sites.
  • On the home page of the report manager click “Folder Settings”, “Security” and make your account “Content Manager”.
  • Click “Site Settings”, “Security” and make your account “System Administrator”.
  • Problem solved!

For more info: search for “How to: Configure a Report Server for Local Administration on Windows Vista and Windows Server 2008” in BooksOnline.

  • Share/Bookmark

Next SQLUG event: Zero-Downtime upgrade from SQL Server 2005 by Dirk Gubbels – Sep 24th, 2009

SQLUG

On September 24th, we kick off a new year of SQLUG events.

To be sure we kick-off properly, we hired a top-speaker, namely Dirk Gubbels. Dirk is one of our best guest speakers and by far one of the best SQL Server professionals.

Dirk Gubbels is a senior consultant at Microsoft, and has been working with SQL Server since version 4.2.

As one of the few Microsoft Certified Database Architects he has been involved in the most demanding SQL server based applications in Belgium and all over the EMEA region.

His main focus areas are Design, Performance and Availability for both OLTP and Business Intelligence environments.

Upgrading from SQL Server 2005 to 2008 may look very easy and straightforward, but there are always risks involved.

The goal of this session is to identify these risks, and show proven ways to mitigate these, or reduce the impact.

The second part of the session will show some techniques for minimizing downtime during the upgrade, to a point where the application can remain online.

This session will focus on the upgrade process for the Database engine, not on the differences between the versions, or the upgrade process of other SQL Server components.

This event is brought to you by Microsoft

Register on SQLUG.BE.

  • Share/Bookmark
Sep 2nd, 2009 | Filed under Event, SQL Server