|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:15 AM
Points: 123,
Visits: 502
|
|
Geoff A (11/8/2010) renasoursou, try this;
create an alias for RLDB2,4949\RLDB2_05 and call it something like "monitor"
then change Data Source=RLDB2,4949\RLDB2_05 to Data Source=monitor
how/where do you define this alias?
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 7:10 AM
Points: 485,
Visits: 1,568
|
|
peleg (11/8/2010)
Geoff A (11/8/2010) renasoursou, try this;
create an alias for RLDB2,4949\RLDB2_05 and call it something like "monitor"
then change Data Source=RLDB2,4949\RLDB2_05 to Data Source=monitorhow/where do you define this alias?
http://msdn.microsoft.com/en-us/library/ms190445.aspx
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, March 15, 2013 1:34 PM
Points: 27,
Visits: 182
|
|
Its running with the allias name. Thanks a lot and its really a great and usefull Article!!!   
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:15 PM
Points: 1,409,
Visits: 4,509
|
|
nice article
i've been doing something similar for 2 years and might check this out to see if it's faster than mine. in my case i run the VB from each server and dump to a central SQL server. i have a staging table for each server and there is a job that runs every hour to delete old data from the main tables and copy data from the staging tables and then truncate them. and i wrote a bunch of reports over the last year to track locked out accounts, AD Group changes, etc. each report has a SSRS subscription to email it to the right people
i've wanted to change over to powershell, but haven't found anything where it says how to dump the data directly to SQL
to make sure data is being imported i have a report that i check once a week that shows me the server name and the latest app/security log dates in the database for each server
https://plus.google.com/100125998302068852885/posts?hl=en http://twitter.com/alent1234 x-box live gamertag: i am null [url=http://live.xbox.com/en-US/MyXbox/Profile[/url]
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Saturday, May 18, 2013 7:23 AM
Points: 141,
Visits: 372
|
|
Great post! I usually did the same way before SQL Server 2008.
Now I've implemented central monitor solution using PowerShell and SQL Server central management feature.
For security reason I would try not using VBS. Using native SQL Server central management also enables you to manage and configure in one place.
my two cents.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:15 PM
Points: 1,409,
Visits: 4,509
|
|
GNUZEN (11/8/2010) Great post! I usually did the same way before SQL Server 2008.
Now I've implemented central monitor solution using PowerShell and SQL Server central management feature.
For security reason I would try not using VBS. Using native SQL Server central management also enables you to manage and configure in one place.
my two cents.
with SQL 2008 can you import event logs from non-sql servers into a database?
https://plus.google.com/100125998302068852885/posts?hl=en http://twitter.com/alent1234 x-box live gamertag: i am null [url=http://live.xbox.com/en-US/MyXbox/Profile[/url]
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:15 AM
Points: 123,
Visits: 502
|
|
vbscript is not secure enough, but powershell has it's dangerous too. i think that doing it in PowerShell is better, if you start from Zero, beacuse it's being added more abilities all the time (while vbscript is old and not updated).
to dump data using powershell to a db, you can use a dll which will do the work for you : Bulk import text files using .net 2.0 SqlBulkCopy class in C#
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:15 PM
Points: 1,409,
Visits: 4,509
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, January 13, 2012 7:06 AM
Points: 1,
Visits: 54
|
|
This example seems to work a treat on two of my SQL Servers (one a 2005 box and the other a 2008 box), however I cant seem to get any events forwarding on another 2008 box.
I've enabled Event Forwarding in SQL Agent on the server and have verified the hostname and that all events are enabled but this doesnt seem to have resolved this.
Are there any common pitfulls I may have overlooked?
Thanks Matt
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 7:10 AM
Points: 485,
Visits: 1,568
|
|
Matt Hayes (11/8/2010) This example seems to work a treat on two of my SQL Servers (one a 2005 box and the other a 2008 box), however I cant seem to get any events forwarding on another 2008 box.
I've enabled Event Forwarding in SQL Agent on the server and have verified the hostname and that all events are enabled but this doesnt seem to have resolved this.
Are there any common pitfulls I may have overlooked?
Thanks Matt
Hi Matt,
more than likely, MSDTC is not configured. On the server that IS set to forward events and it is not working, look at the application event log to confirm.
|
|
|
|