none
using two different databases on the same server

    Question

  • I have several databases on one server which I can access with no problem. two of the databases have the exact same files. One is a Master and the other is a sandbox which I can mess up or change data for testing purposes. How would I code it if I want to see in each of the student files the personid field side by side.

    Thursday, March 29, 2012 12:17 PM

All replies

  • you requirement is not much clear. You can always access data from other database on same server if you are having permissions. You will need to use FQDN for tghis like [dbname].[schemaname].[tablename] e.g [employee].[hr].[salary]


    Kindly mark the reply as answer if they help

    Thursday, April 05, 2012 12:15 PM
  • Your question is not clear but I think you are looking for a JOIN to the 2 tables  on personid. Depending on the results you want to see exactly it could be a inner join, outer join, left join, or right join. Please provide more info. What output are you looking for?

    John

    http://knowledgy.org

    Sunday, April 08, 2012 12:46 AM