I added the REPLACE(..statement…., CHAR(13) + CHAR(10), ‘ ‘) as query_text to band aid this issue. I was curious if you were doing something different to not have this issue.
Thanks.
]]>Thanks Glenn,
As per policy we have 12 log file which is sufficient for us to identify/debug any issue.
As mentioned earlier, daily recycle overwrites older logs and server is up and running much more than 12 days.
Do you see any issue with this strategy? or any other related tip please.
Again thanks for reply.
Kind Regards.
]]>I would be curious whether the words “detected” or “socket” show up in any of your error logs. Probably what is happening is that your servers have been running long enough that the actual startup information from the original error log when SQL Server started has been overwritten as you recycle the log every day.
]]>This is not returning any results on any of the servers. We have SQL Server 2012 Standard edition where we cycle the logs every day.
Glenn, Any reason/fix in your mind. Thanks
]]>SELECT db.[name] AS [Database Name], db.recovery_model_desc AS [Recovery Model],
db.log_reuse_wait_desc AS [Log Reuse Wait Description],
ls.cntr_value AS [Log Size (KB)], lu.cntr_value AS [Log Used (KB)],
CAST(CAST(lu.cntr_value AS FLOAT) / CAST(ls.cntr_value AS FLOAT)AS DECIMAL(18,2)) * 100 AS [Log Used %],
db.[compatibility_level] AS [DB Compatibility Level],
db.page_verify_option_desc AS [Page Verify Option], db.is_auto_create_stats_on, db.is_auto_update_stats_on,
db.is_auto_update_stats_async_on, db.is_parameterization_forced,
db.snapshot_isolation_state_desc, db.is_read_committed_snapshot_on,
db.is_auto_close_on, db.is_auto_shrink_on, db.is_cdc_enabled
FROM sys.databases AS db WITH (NOLOCK)
LEFT JOIN sys.dm_os_performance_counters AS lu WITH (NOLOCK)
ON db.name = lu.instance_name
AND lu.counter_name LIKE N’Log File(s) Used Size (KB)%’
LEFT JOIN sys.dm_os_performance_counters AS ls WITH (NOLOCK)
ON db.name = ls.instance_name
AND ls.counter_name LIKE N’Log File(s) Size (KB)%’
AND ls.cntr_value > 0
ORDER BY db.[name] OPTION (RECOMPILE);