Navigation
  • SEARCH HERE
  • SOLUTIONS
    • Information Security Solutions
      • Enterprise Application Security Solutions in Asia
      • Network & Infrastructure Security Solutions
      • Zero Trust Security
      • Security Information and Event Management
      • Remote Monitoring & Management (RMM)
      • File Integrity Management
      • Systems Administration Tools
      • Data Loss Prevention
      • Data / Password Recovery
      • IT Management Solution Offering | Distributor in Asia
      • Identity and Access Management Solution Offering | Distributor in Asia
      • Employee Activity Monitoring (EAM)
      • Digital Forensic Investigation
    • Software Development Solutions
      • Integrated Development Environments
      • Development Components
        • UI Tools
        • Networking Components
        • Office Components
        • Barcode Components
        • Communication Components
      • Imaging Solutions
      • Software Localization
      • Release Automation & Management
      • eLearning Authoring Solutions
      • Charting Solutions
      • PDF Solutions
      • Reporting Solutions
      • Testing & QA
      • Text Retrieval / Enterprise Search
      • Database
  • Services
    • Live Solution Walkthroughs
    • Implementation Services
    • Best Practices Consulting
    • Pre-Sales and Post-Sales Services
  • What's New
    • Our Event
    • Our Blogs
    • Special Offers
  • About
    • About LOGON Software Asia
    • Our Partnership
  • Publishers - Join our network
  • Resellers - Expand your portfolio
  • Procurement Managers
Site logo
  • Solutions
    • Information Security Solutions
      • Identity and Access Management
        • Privileged Access Management (PAM)
        • Multi-Factor Authentication (MFA)
        • Identification Verification (IV)
        • Self-Service Password Reset (SSPR)
      • Network & Infrastructure Security
        • DDoS Mitigation and Protection
        • Digital Forensic Investigation
        • Malware Detection & Analysis
        • Network Monitoring Software
        • Email Security
        • Log Monitoring
      • Endpoint & Device Security
        • Patch Management
        • Remote Monitoring & Management (RMM)
        • Employee Activity Monitoring (EAM)
        • Mobile Device Management (MDM)
      • IT Management
        • IT Service Management
        • IT Asset Management
        • Software Asset Management
        • Hardware Asset Management
        • Software License Management
        • Systems Administration Tools
      • Application Security
        • Development Security | Shift Left AppSec | SAST, SCA, IAST
        • Runtime Protection Solutions | DAST, RASP, WAF, Container Security
        • Strategic Management Solutions | ASPM, MAST, VAPT
      • Data Security
        • Data / Password Recovery
        • File Integrity Management
        • Data Loss Prevention
      • Cloud Security
        • Cloud Security Posture Management
        • Cloud Work Protection
      • External Attack Surface Management
        • Cyber Threat Intelligence
        • Third Party Risk Management
      • Security Operations & Incident Management
        • Security Information and Event Management
        • Security Orchestration, Automation and Response (SOAR)
      • Zero Trust Security
    • Software Development Solutions
      • Integrated Development Environments
      • Imaging Solutions
      • UI Tools
      • Charting Solutions
      • Developer Tools
      • Database
      • Networking Components
      • Office Components
      • Barcode Components
      • Release Automation & Management
      • Software Localization
      • Communication Components
      • Automated Testing
      • eLearning Authoring Solutions
      • Reporting Solutions
      • Text Retrieval / Enterprise Search
      • Testing & QA
  • Services
        • Live Walkthrough Sessions

          Experience the full feature of our key solutions through live platform

          View All Sessions >
        • Implementation Services
        • Pre-Sales and Post-Sales Services
        • Best Practices Consulting
  • Partners
    • Our Partners
    • Partner with LOGON Today!
      • Vendors - Join Our Network
      • Resellers - Expand Your Portfolio
      • Procurement Managers
  • Resources
        • ABOUT US

        • About Us
        • Our Locations
        • Careers@LOGON - We are hiring !
        • DISCOVER

        • Our BlogsNEW BLOGS
        • Our EventsJOIN UPCOMING EVENTS
        • LOGON to CyberSecurity PodcastNEW EPISODES
        • GET HELP

        • Contact Us
        • Help Desk
        • Request a Demo
        • Request a Quote
        • COMPLIANCE

        • 🇭🇰 Hong Kong PDPO
        • 🇮🇳 India DPDP Act
        • 🇸🇬 Singapore PDPA
        • 🇹🇭 Thailand PDPA
  • More results...

View large
Blog, Stimulsoft Blog

Using a Stored Procedure in the design of reports | Stimulsoft

Using a Stored Procedure in the design of reports

This article is originally published by our partner, Stimulsoft. Click here to view the original article.

What is a stored procedure?

A stored procedure is a SQL instruction that allows you to execute a set of different queries sequentially. It’s convenient to use when creating reports and dashboards when the same SQL query is duplicated all the time in various data sources. That’s why, for example, when some queries need to be edited, they should be changed in all reports. In this case, it will be logical to create a stored procedure in the storage and just call only this procedure when creating a data source in reports. Flexible use is the first advantage of stored procedures.

what is

Other advantages of the use of stored procedures

Using a stored procedure increases productivity compared to a simple sequence of SQL instructions. This is because the procedure code is compiled once on the data storage server when it’s first running and after it is saved in a compiled form. In addition, the use of stored procedures considerably increases security. Since when calling a procedure over the network, you can see only a call to execute the procedure. The names of table and database objects are not available, and, accordingly, it is much more difficult to perform SQL injections.


The use of a stored procedure

Now we’re going to tell you how to use a stored procedure in reports. When creating reports and dashboards, you can type the text of a stored procedure call in the Data Source editor while editing or creating it. In this case, the report generator engine will execute a query with a stored procedure when rendering a report that will be processed on the server with data storage. As a result, an answer with data will be formed that will be got back to the report generator. Then, these data will be processed by the report generator and displayed in the viewer as a report or dashboard.

Stored procedure initialization

When typing the text of a stored procedure call in a data source, the text of the call can be initialized as Query or Stored Procedure. You can set initialization of the call text using the Type parameter, having selected an appropriate value as Query or Stored Procedure.

For example, if some call text is a query with a command of executing a stored procedure, the entire call text should be initialized as Query. Accordingly, a special stored procedure execution command should be specified before a stored procedure name. You can learn extensively about the commands of a stored procedure execution in the specification of your data storage. We just note that depending on a type of a data storage common commands of a stored procedure execution are exec, execute and call.

In cases when creating a data source, a stored procedure is executed only. The call text can be initialized as Stored Procedure. To do this, in the call text, you should specify only the name of a stored procedure that needs to be executed.

initialization

Parameters of a stored procedure

When calling a stored procedure, you can pass parameters. Using parameters for stored procedures depends on initializing the call text as Query or Stored Procedure. In cases of the call text initialization as Query, parameters are specified separated by commas, with a prefix in the form of a special sign @ before the parameter name. For example, exec StoredProcedureName @param1, @param2, @param3.

parameters
In cases of the call text initialization as a Stored Procedure, you should create parameters in a data source not specifying them in the text. The main thing here is to consider the sequence of parameters placement in the list. They will be applied sequentially, observing the order in the top-down direction from the list of parameters.

Also, you can get a list of necessary parameters of a procedure automatically. To do this, you should specify the name of the procedure in the call text, set the Type parameter to Stored Procedure, and select the Retrieve Columns and Parameters command from the Retrieve Columns menu.Note

In particular cases, a data source can support only unnamed parameters, for example, OleDB. In the case of the call text initialization as Query, it will be important to consider the sequence of parameters in the list. So, unnamed parameters in a query are denoted by a special symbol ? without naming them.


Besides, we have recently published a detailed article about parameters in a query. All described in it is applied to stored procedures, too. Including the fact that variables can be used as parameters of stored procedures with a value query from a user or by default.

We have explored the situation of using stored procedures when creating reports and dashboards. It’s up to you to decide whether to use queries or stored procedures, since each situation requires additional consideration to make a decision. Stimulsoft only provides various features and tools, making the process of creating reports and dashboards more flexible.

In addition, we have prepared a detailed video instruction about using a stored procedure when rendering a report.


Embedded Solutions for Developers

Use our components to design reports of any complexity. Create stunning, impressive, and understandable analytical panels (dashboards).

Solution Highlight

Explore Online Demo Now

Stimulsoft prepared a huge number of professionally developed reports and dashboards based on real-world tasks. Choose the right one, and connect your data – the solution is ready, start using it in your business!

Start Online Demo
Contact Us Today

FOLLOW US ON

  • LinkedIn
  • Facebook
  • Instagram
  • Twitter
  • YouTube
Read Next:
Application Security BlogArtificial IntelligenceBlogLOGON Blog
AI-Augmented Penetration Testing: Meeting the Scale Challenge
Application Security BlogArtificial IntelligenceBlogIT Management BlogLOGON Blog
The First Autonomous AI Cyber Attack is Here: Is Your Enterprise Ready?
Application Security BlogBlogLOGON Blog
Shift Left, Verify Right: The Blueprint for Modern Application Security Across Asia

Privacy Policy Company Overview

COMPANY

Our Location Career with LOGON Our Partners

SERVICES

Training Services Implementation Services Pre-Sales and Post-Sales Services Best Practices Consulting

GET IN TOUCH

Phone:
Hong Kong: +852 2512 8491
India: +91 70220 22744 / +91 63668 26133
Email: [email protected] ©2025 LOGON International Ltd. All rights reserved
logon logo WHITE

Search engine

Use this form to find things you need on this site

More results...

Fill in the form below
  • This field is for validation purposes and should be left unchanged.
  • This field is hidden when viewing the form
  • This field is hidden when viewing the form

Watch On-demand Webinar

  • This field is for validation purposes and should be left unchanged.

Get Your Free UserLock Trial

  • This field is for validation purposes and should be left unchanged.

Download Your Free Trial 10-Day Trial Today

  • Downloading and evaluating Smart Package Studio is quick and easy
  • Includes a short introductory guide that suggests smart features to try
  • Access the full functionality of Smart Package Studio during the trial
  • This field is for validation purposes and should be left unchanged.

Request for Priority Support with our support team

  • This field is for validation purposes and should be left unchanged.
  • Drop files here or
    Max. file size: 30 MB.

    Get Free Assessment of your Web Asset

    Request a free non-intrusive security assessment of your website. Get a report with an overview of client-side security risks.

    • This field is for validation purposes and should be left unchanged.
    • This field is hidden when viewing the form

    Recommend a Topic

    • This field is for validation purposes and should be left unchanged.

    Partner with Us on the next episode

    • This field is for validation purposes and should be left unchanged.

    Watch On-demand Webinar

    • This field is for validation purposes and should be left unchanged.
    Start PreCrime Network for Free

    Oops! We could not locate your form.

    Book a Free Demo Today

    Get Your Free Trial

    Oops! We could not locate your form.

    Get Your Free Trial
    • This field is for validation purposes and should be left unchanged.
    • This field is hidden when viewing the form
    • This field is hidden when viewing the form
    Request for Training Quote

    Oops! We could not locate your form.

    Request for Training Quote

    Oops! We could not locate your form.

    Request for Training Quote

    Oops! We could not locate your form.

    Request for Training Quote
    • This field is for validation purposes and should be left unchanged.
    • Please enter a number from 1 to 20.
    • This field is hidden when viewing the form
    Request for Training Quote
    • This field is for validation purposes and should be left unchanged.
    • Please enter a number from 1 to 20.
    • This field is hidden when viewing the form
    Request for Training Quote
    • Please enter a number from 1 to 20.
    • DD slash MM slash YYYY
    Request for Training Quote
    • This field is for validation purposes and should be left unchanged.
    • Please enter a number from 1 to 20.
    • DD slash MM slash YYYY
    Request for Training Quote
    • This field is for validation purposes and should be left unchanged.
    • Please enter a number from 1 to 20.
    • DD slash MM slash YYYY
    Request for Training Quote
    • This field is for validation purposes and should be left unchanged.
    • Please enter a number from 1 to 20.
    • This field is hidden when viewing the form