Click here to Skip to main content
15,905,508 members
Home / Discussions / Database
   

Database

 
AnswerRe: how do i design a database system for an app? Pin
Shameel14-Feb-12 3:15
professionalShameel14-Feb-12 3:15 
GeneralRe: how do i design a database system for an app? Pin
BupeChombaDerrick14-Feb-12 3:24
BupeChombaDerrick14-Feb-12 3:24 
GeneralRe: how do i design a database system for an app? Pin
Mycroft Holmes15-Feb-12 13:13
professionalMycroft Holmes15-Feb-12 13:13 
AnswerRe: how do i design a database system for an app? Pin
PIEBALDconsult14-Feb-12 2:24
mvePIEBALDconsult14-Feb-12 2:24 
QuestionSql Server 2005 crashes from time to time Pin
usermj8712-Feb-12 23:17
usermj8712-Feb-12 23:17 
AnswerRe: Sql Server 2005 crashes from time to time Pin
Eddy Vluggen13-Feb-12 5:04
professionalEddy Vluggen13-Feb-12 5:04 
AnswerRe: Sql Server 2005 crashes from time to time Pin
Shameel13-Feb-12 8:18
professionalShameel13-Feb-12 8:18 
GeneralRe: Sql Server 2005 crashes from time to time Pin
usermj8713-Feb-12 21:41
usermj8713-Feb-12 21:41 
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 * *******************************************************************************
2011-12-28 02:00:53.36 spid55 *
2011-12-28 02:00:53.36 spid55 * BEGIN STACK DUMP:
2011-12-28 02:00:53.36 spid55 * 12/28/11 02:00:53 spid 55
2011-12-28 02:00:53.36 spid55 *
2011-12-28 02:00:53.36 spid55 *
2011-12-28 02:00:53.36 spid55 * Exception Address = 00000000774A54FA Module(ntdll+00000000000254FA)
2011-12-28 02:00:53.36 spid55 * Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
2011-12-28 02:00:53.36 spid55 * Access Violation occurred writing address 0000000000000024
2011-12-28 02:00:53.36 spid55 * Input Buffer 510 bytes –
2011-12-28 02:00:53.36 spid55 * exec sendmail_subsc 'email address 1(placeholder)','email address 2 (placeholder
2011-12-28 07:53:15 - ! [298] SQLServer Error: 233, Shared Memory Provider: No process is on the other end of the pipe. [SQLSTATE 08S01]
2011-12-28 07:53:15 - ! [298] SQLServer Error: 233, Communication link failure [SQLSTATE 08S01]
2011-12-28 07:53:15 - ! [382] Logon to server '(local)' failed (ConnAttemptCachableOp)
2011-12-28 07:53:15 - ! [298] SQLServer Error: 233, Shared Memory Provider: No process is on the other end of the pipe. [SQLSTATE 08S01]
2011-12-28 07:53:15 - ! [298] SQLServer Error: 233, Communication link failure [SQLSTATE 08S01]
2011-12-28 07:53:15 - ! [382] Logon to server '(local)' failed (ConnAttemptCachableOp)
QuestionNew Login Failure - Msg 18456 Pin
AmbiguousName12-Feb-12 7:07
AmbiguousName12-Feb-12 7:07 
AnswerRe: New Login Failure - Msg 18456 Pin
jschell12-Feb-12 7:55
jschell12-Feb-12 7:55 
AnswerRe: New Login Failure - Msg 18456 Pin
Mycroft Holmes12-Feb-12 12:04
professionalMycroft Holmes12-Feb-12 12:04 
AnswerRe: New Login Failure - Msg 18456 Pin
Shameel13-Feb-12 8:23
professionalShameel13-Feb-12 8:23 
QuestionReading multi-value MS Access fields with C++ and DAO Pin
radjiv110-Feb-12 9:24
radjiv110-Feb-12 9:24 
AnswerRe: Reading multi-value MS Access fields with C++ and DAO Pin
SilimSayo14-Feb-12 5:17
SilimSayo14-Feb-12 5:17 
QuestionDatabase documentation examples. Pin
Brady Kelly9-Feb-12 18:37
Brady Kelly9-Feb-12 18:37 
AnswerRe: Database documentation examples. Pin
Corporal Agarn10-Feb-12 3:12
professionalCorporal Agarn10-Feb-12 3:12 
GeneralRe: Database documentation examples. Pin
Brady Kelly10-Feb-12 4:43
Brady Kelly10-Feb-12 4:43 
GeneralRe: Database documentation examples. Pin
jschell10-Feb-12 9:37
jschell10-Feb-12 9:37 
GeneralRe: Database documentation examples. Pin
Brady Kelly10-Feb-12 17:42
Brady Kelly10-Feb-12 17:42 
QuestionSQL Sum Up Pin
Socheat.Net8-Feb-12 16:53
Socheat.Net8-Feb-12 16:53 
AnswerRe: SQL Sum Up Pin
thatraja8-Feb-12 18:19
professionalthatraja8-Feb-12 18:19 
GeneralRe: SQL Sum Up Pin
Socheat.Net8-Feb-12 19:18
Socheat.Net8-Feb-12 19:18 
QuestionTable comparison Pin
vanikanc8-Feb-12 5:55
vanikanc8-Feb-12 5:55 
AnswerRe: Table comparison Pin
Eddy Vluggen8-Feb-12 6:25
professionalEddy Vluggen8-Feb-12 6:25 
AnswerRe: Table comparison Pin
David Mujica8-Feb-12 8:15
David Mujica8-Feb-12 8:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.