Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: Monday, February 22, 2016 2:30 PM
Points: 81, Visits: 366

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


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 1:31 PM
Points: 15,559, Visits: 15,718
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


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 2:06 AM
Points: 15,143, Visits: 13,032
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 SQLKover.

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

Add to briefcase

Permissions Expand / Collapse