Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

3rd Part Database Access

$
0
0

Hi all

Hoping someone can point me in the right direction.

We have a single Sql server that contains two databases. One is in house created (db1) and another is for a 3rd party provided accounts package (db2). I am wanting to run queries against db2 database in order to integrate information with the in house database. I do not want to create any functions or stored procedures in db2.

Db2 is a multi company product, and the various companies are separated by schema within the database. Hence table structure will look like

db2.company1.documents
db2.company2.documents etc..

db2 has multiple read only logins and associated users set up as the schema owner one for each company.

I want to be able to write my queries in db1 such that the same query is used regardless of which company information i wish to retrieve. So far what I have done is to...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>