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. Joining fields from several tables onto one SSRS report

Joining fields from several tables onto one SSRS report

Scheduled Pinned Locked Moved Database
sql-serverquestion
4 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.
  • S Offline
    S Offline
    SQL Ed
    wrote on last edited by
    #1

    Does anyone know the best way to join fields from several tables onto a single SSRS report for SSRS 2005 and SSRS 2008? :doh:

    M 1 Reply Last reply
    0
    • S SQL Ed

      Does anyone know the best way to join fields from several tables onto a single SSRS report for SSRS 2005 and SSRS 2008? :doh:

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

      Just guessing as it has been a while sine I did any SSRS, either concatenate the fields in the cell definition if you are in a matrix or create an expression and use that for the textbox content. There is also the option of creating a formula and using that but I can remember the entry point for the code editor. [edit] Reread you question - several tables. I always use a stored proc and return 1 table as a result set [/edit]

      Never underestimate the power of human stupidity RAH

      S 1 Reply Last reply
      0
      • M Mycroft Holmes

        Just guessing as it has been a while sine I did any SSRS, either concatenate the fields in the cell definition if you are in a matrix or create an expression and use that for the textbox content. There is also the option of creating a formula and using that but I can remember the entry point for the code editor. [edit] Reread you question - several tables. I always use a stored proc and return 1 table as a result set [/edit]

        Never underestimate the power of human stupidity RAH

        S Offline
        S Offline
        SQL Ed
        wrote on last edited by
        #3

        Will this work if you need to join several tables from different databases which would mean different data sources?

        M 1 Reply Last reply
        0
        • S SQL Ed

          Will this work if you need to join several tables from different databases which would mean different data sources?

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

          It is possible especially if the DBs are on the same server, if they are not then the hassle of linked servers is irritating. Investigate doing the join in code in the report. You can throw the values into variables an manipulte the vars.

          Never underestimate the power of human stupidity RAH

          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