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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Creating a report selecting information from two databases on the same server

Creating a report selecting information from two databases on the same server

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelpquestion
5 Posts 4 Posters 1 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.
  • M Offline
    M Offline
    mlemon14
    wrote on last edited by
    #1

    Does anyone know how I can create a report on reporting services that selects information from two databases on the same sql server? Any help would be grateful Michael

    L I 2 Replies Last reply
    0
    • M mlemon14

      Does anyone know how I can create a report on reporting services that selects information from two databases on the same sql server? Any help would be grateful Michael

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Create a linked server[^] :)

      I are Troll :)

      M 1 Reply Last reply
      0
      • L Lost User

        Create a linked server[^] :)

        I are Troll :)

        M Offline
        M Offline
        Md Marufuzzaman
        wrote on last edited by
        #3

        If both database are is same server then why use linked server.. :confused: :confused: :confused:

        I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.


        Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. Thanks Md. Marufuzzaman

        L 1 Reply Last reply
        0
        • M mlemon14

          Does anyone know how I can create a report on reporting services that selects information from two databases on the same sql server? Any help would be grateful Michael

          I Offline
          I Offline
          i i i
          wrote on last edited by
          #4

          check the following link http://msdn.microsoft.com/en-us/library/ms345292.aspx[^] or SQL Server 2000 Reporting Services: Creating a report from scratch[^] or Creating Reports with SQL Reporting Service and Visual Studio .NET[^] and can also use/try schema.db.dbo.tbl name

          Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

          1 Reply Last reply
          0
          • M Md Marufuzzaman

            If both database are is same server then why use linked server.. :confused: :confused: :confused:

            I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.


            Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. Thanks Md. Marufuzzaman

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Aw, my aplogies, there's no need to create a linked server. You can just prefix the entities that you need to denote the database;

            SELECT *
            FROM [database].[schema].[table]

            E.g.;

            SELECT *
            FROM Northwind.dbo.Employees

            I are Troll :)

            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