|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, August 27, 2009 12:56 AM
Points: 348,
Visits: 7
|
|
Excellent! First time I see an easy to understand and very useful SQL DMO example. Congratulations, Geert
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, April 09, 2009 8:26 AM
Points: 13,
Visits: 4
|
|
Very good concept, but unfortunately as always, I can never get VBA script to work :-( When I have time, I may try to do the same thing using .NET, C# and Office Interop Libraries. Alastair
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Saturday, June 20, 2009 1:52 PM
Points: 12,
Visits: 3
|
|
Incredibly powerful! Thank you for the great example. Awesome stuff! Kevin
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Yesterday @ 5:11 PM
Points: 59,
Visits: 495
|
|
Simple and elegant. This one worked for me straigt from the 'box'. Tom 
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 9:42 AM
Points: 130,
Visits: 243
|
|
i keep getting a server doesnt exist or access denied error. I triple checked the server name and verified my nt account has SA privs. Maybe im doing something wrong.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Yesterday @ 4:38 PM
Points: 414,
Visits: 2,682
|
|
I am having message server does not exist. Any tips on what I am doing wrong would be appreciated.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
Have you followed the instructions on the helptab of the worksheet? The config tab contains the following entries in column A, all of which need to be deleted (including List your SQL Server HERE) and replaced with the SQL Server names in you environment: | List your SQL Server HERE | | SQLPRD1 | | SQLPRD2 | | SQLPRD3 |
The VBA code loops through the list of server specified in on the config tab column A (Column A is a named Excel Range "Server").
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Yesterday @ 4:38 PM
Points: 414,
Visits: 2,682
|
|
DOH! Thanks cmille19, should have actualy used my brain on this. Working like a charm now.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, April 14, 2008 7:18 AM
Points: 40,
Visits: 21
|
|
The example you provided is great. One comment though- the same goal can be achieved without any development efforts by running simple SQL queries on all databases and servers in parallel and returning aggregated results from all queried databases, by using tools such as SQL Farm Combine.
The SQL-DMO code is good, however it runs serially and it can take quite some time for results to return, especially if you extend the example to return larger result sets, or retrieve data from a large number of databases and servers.
Editor's Note: : Dr. Omri Bahat works for SQLFarms, a software vendor of SQL Server tools.
|
|
|
|