Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Sql Server 2005 crashes from time to time

Sql Server 2005 crashes from time to time

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    usermj87
    wrote on last edited by
    #1

    Hi, we are having a problem with an SQL Server 2005. We are running multiple scripts to send emails on the server but from time to time the server stops sending emails and we have to do a restart to ensure functionalitsy again. We have already taken care to close all opened connections in the scripts. Any thoughts?

    L 2 Replies Last reply
    0
    • U usermj87

      Hi, we are having a problem with an SQL Server 2005. We are running multiple scripts to send emails on the server but from time to time the server stops sending emails and we have to do a restart to ensure functionalitsy again. We have already taken care to close all opened connections in the scripts. Any thoughts?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      usermj87 wrote:

      Any thoughts?

      Only wild guesses - care to show us your code? There are various logfiles in Sql Server. Did they contain any references to errors or warnings?

      Bastard Programmer from Hell :suss:

      1 Reply Last reply
      0
      • U usermj87

        Hi, we are having a problem with an SQL Server 2005. We are running multiple scripts to send emails on the server but from time to time the server stops sending emails and we have to do a restart to ensure functionalitsy again. We have already taken care to close all opened connections in the scripts. Any thoughts?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Very difficult to suggest something without seeing your code. Deadlocks, Uncommitted transactions and so many other things could happen.

        U 1 Reply Last reply
        0
        • L Lost User

          Very difficult to suggest something without seeing your code. Deadlocks, Uncommitted transactions and so many other things could happen.

          U Offline
          U Offline
          usermj87
          wrote on last edited by
          #4

          Yes... We are using a standard Stored Procedure as sendmail function. ALTER PROCEDURE [dbo].[sendmail_subsc] @to varchar(200), @copy varchar(200)=null, @bcc varchar(200)=null, @replyto varchar(200)=null, @from varchar(200), @subject varchar(200), @body text, @filename varchar(255)=null AS Declare @iMsg int Declare @hr int --************* Create the CDO.Message Object ************************ EXEC @hr = sp_OACreate 'CDO.Message', @iMsg OUT -- This is to configure a remote SMTP server. EXEC @hr = sp_OASetProperty @iMsg, 'Configuration.fields("http://schemas.microsoft.com/cdo/configuration/sendusing").Value','2' -- This is to configure the Server Name or IP address. EXEC @hr = sp_OASetProperty @iMsg, 'Configuration.fields("http://schemas.microsoft.com/cdo/configuration/smtpserver").Value', 'our smtp server' -- Save the configurations to the message object. EXEC @hr = sp_OAMethod @iMsg, 'Configuration.Fields.Update', null -- Set the e-mail parameters. EXEC @hr = sp_OASetProperty @iMsg, 'To', @To IF @copy IS NOT NULL BEGIN EXEC @hr = sp_OASetProperty @iMsg, 'Cc', @copy END IF @bcc IS NOT NULL BEGIN EXEC @hr = sp_OASetProperty @iMsg, 'Bcc', @bcc END IF @replyto IS NOT NULL BEGIN EXEC @hr = sp_OASetProperty @iMsg, 'ReplyTo', @replyto END EXEC @hr = sp_OASetProperty @iMsg, 'From', @from EXEC @hr = sp_OASetProperty @iMsg, 'Subject', @Subject EXEC @hr = sp_OASetProperty @iMsg, 'HTMLBody', @Body IF @filename IS NOT NULL BEGIN EXEC @hr = sp_OAMethod @iMsg, 'AddAttachment', null, @filename END -- Send mail EXEC @hr = sp_OAMethod @iMsg, 'Send', NULL -- Destry object EXEC @hr=sp_OADestroy @iMsg and the error message we get is that in this procedure the destroy object fails at one point in time and then crashed the whole server. (buffer issue?) here is the error log from the server: 2011-12-28 02:00:51.25 spid55 Stack Signature for the dump is 0x000000015B32F370 2011-12-28 02:00:52.24 spid55 External dump process return code 0x20000001.External dump process returned no errors. 2011-12-28 02:00:52.26 spid55 Using 'dbghelp.dll' version '4.0.5' 2011-12-28 02:00:53.36 spid55 ***Stack Dump being sent to E:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump10000.txt 2011-12-28 02:00:53.36 spid55 SqlDumpExceptionHandler: Process 55 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process. 2011-12-28 02:00:53.36 spid55

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups