Doug Lane

SQL Server Entertainer

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
  • Blog
  • About Doug

How to tell if a report is empty without opening it

November 16, 2010 by Doug Lane

Report Half Full
I prefer to think of the report as half full.

Once in a while, I’ll run a scheduled report and for whatever reason, the report won’t return any data.  It ran just fine — no errors, no failures — but there’s just no data in the body.  The reports are saved into various folders on the network.  In thumbing through these folders, I can spot the reports that ran with no data quickly.  It’s the ones that have a certain file size.

In my case, the report in question renders at 67 KB if it’s empty.  Dashboards with graphs, sparklines, and other fixed-size objects will show a little variance in size if a section is empty.  Table rows, on the other hand, will have a much greater impact on the file size when they are populated.  The exaggerated file size difference then makes spotting the blank ones much easier.

So, next time you open a report and you find the content to be empty, take note of the file size.  That number will raise a red flag for you whenever you see it and hopefully help you to catch (and correct) it before your users do.

Filed Under: Reporting Services Tagged With: ssrs, tips

How to keep Report Server awake

November 6, 2010 by Doug Lane

Server Rack
It's not asleep, it's pining for the fjords.
There are few things more frustrating than running a demo of a new report for your users, telling them how fast it is, then having Report Server deliver your three-second report in thirty-three seconds because the server had to wake up first.  Until Microsoft makes the sleep setting for RS configurable to something other than twenty minutes, the best solution I have heard comes from Steve Wake of the Denver SQL Users Group.

Steve said his company runs a report every fifteen minutes to keep the server at attention.  I didn’t ask what was in the report, but I’m assuming it’s one of two things:

  • The report is blank, so from a code standpoint it can’t fail, and it won’t consume any resources beyond the bare minimum.
  • The report is for monitoring or auditing, and needs to be run every fifteen minutes anyway.

In either case, it’s a simple and practical solution and I couldn’t help but grin when I set it up on my server.

Filed Under: Reporting Services Tagged With: ssrs, tips

E-mail address strings in SSIS

November 1, 2010 by Doug Lane

I came across an important distinction in address format while working on a script task.  The script task sends an e-mail using the System.Mail methods and I had been using the same address string as I had used in a Send Mail task upstream.  Turns out, for whatever reason, addresses in a Send Mail task are separated by commas, whereas addresses in a MailMessage.To need to be separated by semi-colon.

Filed Under: Integration Services Tagged With: e-mail, Integration Services, tips

Subscribe now!

Don't miss new posts as they publish. Enter your e-mail address to subscribe!

Your e-mail address will stay quietly between us, like that time I set the carpet on fire by accident.

Copyright © 2025 · Outreach Pro on Genesis Framework · WordPress · Log in