Interactive SSRS Reports: User-Friendly Filtering and Parameter Management

2024-07-27

Stopping Reports from Running Automatically in SQL Server Reporting Services (SSRS)
  • SSRS reports typically run automatically if all report parameters have default values.
  • These default values essentially pre-populate the parameters, causing the report to execute with those predefined values.

Solutions:

  1. Remove Default Values:
    • Open the report in Report Builder.
    • Go to the Report Properties (right-click on the report name in the Solution Explorer).
    • Under the Parameters tab, select each parameter and uncheck the "Has Default Value" checkbox.
    • Save the report.

Example:

Imagine a report that filters data based on a "Date" parameter. By default, if the parameter has a pre-selected date (2024-02-28), the report will automatically fetch data for that day when opened. Removing the default value forces the user to choose a date before running the report.

  1. Use Hidden Filters:
    • If your report relies on filters with default values, consider making them hidden by default.
    • In Report Builder, right-click on the filter and select Visibility.
    • Choose Hidden from the options.
    • Users can then unhide the filter and modify it before running the report.

Related Issues:

  • Allowing Null Values: Ensure the "Allow null value" option is not checked for optional parameters. This can also trigger automatic execution when the report opens.
  • Subscriptions and Caching: If the report is part of a subscription, it will still run automatically at the scheduled time regardless of the above settings. Consider adjusting subscription schedules or implementing caching mechanisms to manage data retrieval frequency.

sql-server reporting-services



SQL Server Locking Example with Transactions

Collision: If two users try to update the same record simultaneously, their changes might conflict.Solutions:Additional Techniques:...


Reordering Columns in SQL Server: Understanding the Limitations and Alternatives

Workarounds exist: There are ways to achieve a similar outcome, but they involve more steps:Workarounds exist: There are ways to achieve a similar outcome...


Unit Testing Persistence in SQL Server: Mocking vs. Database Testing Libraries

TDD (Test-Driven Development) is a software development approach where you write the test cases first, then write the minimum amount of code needed to make those tests pass...


Taming the Hash: Effective Techniques for Converting HashBytes to Human-Readable Format in SQL Server

In SQL Server, the HashBytes function generates a fixed-length hash value (a unique string) from a given input string.This hash value is often used for data integrity checks (verifying data hasn't been tampered with) or password storage (storing passwords securely without the original value)...


Understanding the Code Examples

Understanding the Problem:A delimited string is a string where individual items are separated by a specific character (delimiter). For example...



sql server reporting services

Example Codes for Checking Changes in SQL Server Tables

This built-in feature tracks changes to specific tables. It records information about each modified row, including the type of change (insert


Bridging the Gap: Transferring Data Between SQL Server and MySQL

SSIS is a powerful tool for Extract, Transform, and Load (ETL) operations. It allows you to create a workflow to extract data from one source


Taming the Tide of Change: Version Control Strategies for Your SQL Server Database

Version control systems (VCS) like Subversion (SVN) are essential for managing changes to code. They track modifications


Can't Upgrade SQL Server 6.5 Directly? Here's How to Migrate Your Data

Outdated Technology: SQL Server 6.5 was released in 1998. Since then, there have been significant advancements in database technology and security


Replacing Records in SQL Server 2005: Alternative Approaches to MySQL REPLACE INTO

SQL Server 2005 doesn't have a direct equivalent to REPLACE INTO. You need to achieve similar behavior using a two-step process: