Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9275049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:29:52+00:00 2026-06-18T16:29:52+00:00

My question relates more to the security of its implementation than just technical questions.

  • 0

My question relates more to the security of its implementation than just technical questions.

I have developed all the reports and are on Reporting Server. They are used by application using the ReportViewer Control in ASP.NET.

Given that these reports may have different DataSources, I created a parameter to the DataSource in the report and send connectionString application as parameter to the report.

So far everything is fine, however, this is where my question arises. Since I spend a ConnectionString that has a user and password for parameter, I will not have here a security flaw?

I would like an opinion from you, and if anyone has a better way to implement, tell me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:29:53+00:00Added an answer on June 18, 2026 at 4:29 pm

    Maybe Expression-Based Connection Strings will help here?

    The docs have a pretty clear example, i.e. a connection string similar to:

    ="data source=" & Parameters!ServerName.Value & ";initial catalog=AdventureWorks
    

    These allow you to still pass a parameter to define the Data Source, but it also allows you to store credentials separately so that way you don’t necessarily have to pass any security details when calling the report.

    Added after comment:

    Here’s an example report with an Expression-based Connection String.

    enter image description here

    You can see the Connection String uses a parameter to determine exactly where it’s connecting; this can be updated as you require.

    The credentials are stored in the Data Source; you can store the credentials (see the above screenshot) or you can choose any other option that suits, e.g. Windows Integrated Security.

    So it might not suit you perfectly but this is the inbuilt SSRS functionality for this sort of configurable Data Source requirement.

    Second edit:

    In the above example, Parameters!ServerName.Value is indeed a report parameter, you would just create it like any another. Depending on how your reports are being launched, you could make it a hidden parameter and handle the actual value sent in code; it’s just a question of implementation and really up to you.

    For Expression-based connection strings, the Data Source must be stored in the report, and its Connection String is determined at run time.

    So you can build whatever you need, based on one or more parameters – it’s just a string value you’re constructing so you can make it whatever you want to suit your purpose; you can point it to whatever server/database combination required. Please clarify if this doesn’t answer your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have more of a 'problem solving' question than a syntax related problem. Briefly,
Hi this is more question of code security, rather than a question about a
This relates more to an interview question - I have been asked multiple times
This is related to my previous question More than 1 Left joins in MSAccess
This question relates to cleaning up the view and giving the controller more of
This question relates to a prior question which was answered for all practical purposes
One more question that relates to this interface . Let's say that I would
This question relates to my other post . Ok so after a bit more
This question relates to this question . I have a EF model like this
my question relates to Convert delimited string into hierarchical JSON with JQuery I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.