Quantcast
Channel: Fórum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15680

How to get the data from different database which is in different instance??

$
0
0

Hi everybody,

I have a database server suppose (dbsrvr) and the same server with different Instance suppose (dbsrvr\UAT)

Database details:-

1. DB_RCS is in dbsrvr\UAT

2. DB_DM is in dbsrvr

I want to get the data from both the databases. When I open the New Query window from instanced Database Server (dbsrvr\UAT) and run the below query then it is not working.

Select*from dbsrvr.DB_DM.dbo.Table1 tb1

InnerJoin UAT.DB_RCS.dbo.Table2 dh ON tbl2.ID=dh.ID

It isworking properly if I open the New Query window from Main Database Server (dbsrvr) and gives the result properly. Please provide the solution.

NOTE:- I Don't want to use the Link Server/ Open Query.

Thanks

Sourabh Soni


Regards Sourabh Soni


Viewing all articles
Browse latest Browse all 15680

Latest Images

Trending Articles



Latest Images

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