Archive for the ‘win32’ Category

SSRS – How to set a default parameter to the first day of the month

Tuesday, March 30th, 2010

Just enter one of these expressions into the default parameter box when you’re setting up parameters in SQL Server Reporting Services:

=DateSerial(Year(Now), Month(Now), 1) for first day of the month and
=DateSerial(Year(Now), Month(Now)+1, 0) for the last day of the month.

Source

Fixing Reporting Services (SSRS) Error – rsFailedToDecryptConfigInformation

Monday, March 22nd, 2010

One day I went to Reporting Service’s Report Manager and tried to run a report. But instead of getting a beautiful report rendered in front of my eyes, I got this weird error message:

The encrypted value for the "UnattendedExecutionAccount\Password" configuration setting cannot be decrypted. (rsFailedToDecryptConfigInformation)
The report server has encountered a configuration error. See the report server log files for more information. (rsServerConfigurationError)

To fix this I went into Reporting Services Configuration, and then to the Execution Account section. I unchecked “specify an execution account” and then rechecked it, and applied the settings. After that my reports started working again.

By the way for the execution account I’m using LOCALMACHINE\ASPNET with a blank password.

Update:

The above solution didn’t end up working afterall. Instead i just left “specify an execution account” unchecked since I don’t seem to be using it for anything anyway.

Reporting Services 2005 How to Display Data Point Labels Outside a Pie Chart

Monday, February 8th, 2010

The labels on a pie chart in SQL Server 2005 Reporting Services (SSRS) are very ugly. They just get thrown over the chart by default and they all overlap. I hate it!

This MSDN page tells us how to fix it http://msdn.microsoft.com/en-us/library/ms156263(SQL.90).aspx

To change the position of point labels in a pie chart
Using Report Designer, create a pie chart. For more information, see Working with Chart Data Regions.

In Layout view, right-click the chart, and then click Properties.

On the Data tab, in Values, and then click Add or Edit to open the Edit Chart Value dialog box.

On the Point Labels tab, clear Auto, and then select a button other than the center button.

To set options on this tab, Show point labels must be selected.

SQL Server 2005 Reporting Services SSRS – Fixing Connection Error

Monday, February 1st, 2010

I was completely stumped on this error that I was getting on the report manager web page after I uploaded an RDL file and set it use a shared connection I had already set up:

An error has occurred during report processing.
Cannot create a connection to data source 'TWO'.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

It turns out I had simply mistyped my connection string when I was setting up the shared connection. So that’s something you should check first.

Reporting Services – Error When Starting Report Server

Tuesday, January 26th, 2010

I got this error when starting the report server:


System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed. at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout) at ReportServicesConfigUI.Panels.ServerInformationPanel.StartStopServiceTask(Boolean start).

To fix I opened up a command prompt and typed:

C:\> cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
Start installing ASP.NET (2.0.50727).
.............................................
Finished installing ASP.NET (2.0.50727).

Apparently I had some issue with my ASPNET account