Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Need your opinion on querying data for presentation on winforms / web page and for reports

Need your opinion on querying data for presentation on winforms / web page and for reports

Scheduled Pinned Locked Moved Database
databasecsharpsql-serverwinformssysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nayan Ambaliya
    wrote on last edited by
    #1

    Dear all, I require your opinion on what approach is good and/or practical for the following scenario. There is a web application which queries data from SQL server. For example: Users report to a manager 1. The process by clicking a button is finding who reports to me (manager) 2. So there is a stored procedure written to find the users reporting to the manager Now, there is a report (rdlc on the web server displayed via reportviewer control) which takes the manager as an input to generate report data for the staff members reporting to that manager. The stored procedure for this report uses existing stored procedure (as in step 2 above) to find the staff members reporting to the manager and then generate required data. My question is: 1. Is this the right way of doing this 2. Is there a need to develop a separate SQL view just for this report 3. What would be the best approach on doing this. Please help. Thanks Regards, Nayan

    M 1 Reply Last reply
    0
    • N Nayan Ambaliya

      Dear all, I require your opinion on what approach is good and/or practical for the following scenario. There is a web application which queries data from SQL server. For example: Users report to a manager 1. The process by clicking a button is finding who reports to me (manager) 2. So there is a stored procedure written to find the users reporting to the manager Now, there is a report (rdlc on the web server displayed via reportviewer control) which takes the manager as an input to generate report data for the staff members reporting to that manager. The stored procedure for this report uses existing stored procedure (as in step 2 above) to find the staff members reporting to the manager and then generate required data. My question is: 1. Is this the right way of doing this 2. Is there a need to develop a separate SQL view just for this report 3. What would be the best approach on doing this. Please help. Thanks Regards, Nayan

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I don't see any issues with this approach, the dedicated view may be useful if reconciliation is required or you are going to use an OLAP system but not for you current requirements.

      Never underestimate the power of human stupidity RAH

      N 1 Reply Last reply
      0
      • M Mycroft Holmes

        I don't see any issues with this approach, the dedicated view may be useful if reconciliation is required or you are going to use an OLAP system but not for you current requirements.

        Never underestimate the power of human stupidity RAH

        N Offline
        N Offline
        Nayan Ambaliya
        wrote on last edited by
        #3

        Thank you very much. I just needed a clarification for not under-estimating my decision over my superior. Thank you very much.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups