Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to collect data from multiple servers to a single table to generate report? Expand / Collapse
Author
Message
Posted Wednesday, April 9, 2014 9:23 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, May 30, 2014 9:06 AM
Points: 78, Visits: 329

I have query which populates a table.
I want to run that query across 100+ servers daily and save the output of 100 +servers in single table so that I can pull reports from that single table?

Could you advice me the best approach for this?

Post #1560023
Posted Wednesday, April 9, 2014 10:46 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 1:10 PM
Points: 13,327, Visits: 12,819
Sarwan (4/9/2014)

I have query which populates a table.
I want to run that query across 100+ servers daily and save the output of 100 +servers in single table so that I can pull reports from that single table?

Could you advice me the best approach for this?



Choose which server is going to host your table. Then execute that query against each server and store the results in the table on the server you chose.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1560080
Posted Thursday, April 10, 2014 1:54 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 12:52 PM
Points: 13,636, Visits: 11,509
Sarwan (4/9/2014)

I have query which populates a table.
I want to run that query across 100+ servers daily and save the output of 100 +servers in single table so that I can pull reports from that single table?

Could you advice me the best approach for this?



The easiest way to implement this - in my opinion - is to build a small ETL process with SSIS that gathers the data from all the servers and stores it in a single server. That way you won't have to use linked servers.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1560279
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse