March 2, 2021 at 10:12 am
i need to configure job to consolidate sql error log sizes from multiple servers , iam not proficient in developing scripts nor packages , any one help in doing this task .
March 2, 2021 at 12:07 pm
Check todays featured atricle "Monitor SQL Server Error Logs with PowerShell" to get you started
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
March 4, 2021 at 6:53 am
Hi,
do you use a CMS, or are these sql servers only stand alone?
If you use a CMS, just script your changes on the first sql server, and deploy the changes via script to the other server in your CMS
USE [master]
GO
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'ErrorLogSizeInKb', REG_DWORD, 500
GO
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', REG_DWORD, 31
GO
This sample shows you how to configure the ERRORLOG to 31 files with a size of 500 kb.
Kind regards,
Andreas
March 8, 2021 at 2:59 pm
No i am not using any CMS, needs to configure on servers
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply