Quantcast
Channel: SQL Server Data Access forum
Viewing all articles
Browse latest Browse all 4164

How to query multiple databases from different SQL Servers

$
0
0

We have approx. 8 odd SQL Servers used for different purposes like inserting data in 1 server, update in another etc. (or connecting to only that databases based on user’s region).

The problem is sometimes query for data needs to be done from multiple SQL Server databases. So say, I have an Id property, and based on the Id,data needs to be retrieved from these multiple 8 servers (if there is an Id match, so basically querying all database).

So basically the server which the user is logged into, will use “Linked Server” functionality and connect to other SQL Servers (with the server which the user is currently on acts as the source SQL Server), and using “UNION” functionality to club all data.

As a lot of transactions is taking place each day, this approach is not feasible, performance wise.

So any recommendations on a better approach to achieve the same above functionality. I read a concept called “Server Groups” but not sure of it.

The application is made in .Net Web Forms using Jquery/Ajax/HTML/API and ADO.NET.So in .net application I can establish individual connections and pass the ID from .net app to these servers, but theLinked Server methodology is used to create Custom Report Dashboard. So for custom reports we need to fetch data from multiple sql server and create reports.


Viewing all articles
Browse latest Browse all 4164

Latest Images

Trending Articles



Latest Images

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