All,
I am troubleshooting errors on SQL Server version 9.00.5000.00
This comes with a number of clues that I'll try to be clear with.
1) Recently sp_SendMail has stopped working as expected. Specifically, it will send an email unless we give it a query to append to the body. The result is a hung session (query) that cannot be cancelled. There also is a minidump occuring about the same time - I'll paste some the text below.
2) Cannot access Error logs in SSMS, both version 2005 and 2008R2 doesn't do anything except an hourglass for a little while.
3) Cannot access SQL DBA Dashboard reports (runs some CLR routines)
Aside from simply rebooting the server this evening, can anyone offer advise on what to look for?
Memory
MemoryLoad = 91%
Total Physical = 4094 MB
Available Physical = 335 MB
Total Page File = 5973 MB
Available Page File = 2119 MB
Total Virtual = 2047 MB
Available Virtual = 47 MB
***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0004.txt
SqlDumpExceptionHandler: Process 222 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 11/28/11 08:30:36 spid 222
*
*
* Exception Address = 7C82C6E6 Module(ntdll+0002C6E6)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 00000004
* Input Buffer 510 bytes -
* DECLARE @MSG VARCHAR(255) DECLARE @mySubjectLine varChar(200
* ) DECLARE @mySubject varChar(255) DECLARE @myQuery varchar(max) --D
* ECLARE @MAILTO VARCHAR(500) --SET @MAILTO = 'xxx@xxx.org;xxx@
* xxx.org;xxx@xxx.org' EXEC CLIENT_KS.DBO.sp_Lytec_BadSSN_view IF @@R
* OWCOUNT > 0 BEGIN SET @MSG = 'Below are clients whose social secur
* ity numbers do not match between the Lytec system and CMS as of '
* + CONVERT(VARCHAR(20),GETDATE(),101) + char(13) + char(13) SET @mySu
* bjectLine='xxx BEHAVIORAL HEALTHCARE: Mis-matched SSNs' SET @mySubjec
* t = @mySubjectLine SET @myQuery = 'CLIENT_KS.DBO.sp_Lytec_BadSSN_view
* ' EXEC appSecurity.SafeSend.sp_SendMail_Static @rptSubjectLine =
* @mySubjectLine, @strSubject = @mySubject, @strBody = @MSG,
* @Qry = @myQuery --EXEC msdb.dbo.sp_send_dbmail -- @profile_nam
* e = 'ASDMail', -- @recipients = @MAILTO , -- @copy_recipients = '
* xxx@xxx.org;xxx@xxx.org', -- @query = 'CLIENT_KS.DBO.s
* p_Lytec_BadSSN_view', -- @subject = 'xxx BEHAVIORAL HEALTHCARE: Mis-m
* atched SSNs', -- @body = @MSG END
*
*
* MODULE BASE END SIZE
* sqlservr 01000000 02C26FFF 01c27000
* ntdll 7C800000 7C8C2FFF 000c3000
Thanks in advance,
Mac McCaskie