Click here to Skip to main content
16,008,750 members
Home / Discussions / Database
   

Database

 
JokeRe: oracle 11g alias to query Pin
Bernhard Hiller15-Feb-12 21:04
Bernhard Hiller15-Feb-12 21:04 
GeneralRe: oracle 11g alias to query Pin
David Skelly15-Feb-12 22:05
David Skelly15-Feb-12 22:05 
Questionconcept of database Pin
messages13-Feb-12 22:56
messages13-Feb-12 22:56 
AnswerRe: concept of database Pin
Simon_Whale14-Feb-12 0:16
Simon_Whale14-Feb-12 0:16 
AnswerRe: concept of database Pin
uspatel17-Feb-12 23:54
professionaluspatel17-Feb-12 23:54 
NewsRe: concept of database Pin
Eddy Vluggen18-Feb-12 2:52
professionalEddy Vluggen18-Feb-12 2:52 
GeneralRe: concept of database Pin
messages19-Feb-12 5:09
messages19-Feb-12 5:09 
Questionhow do i design a database system for an app? Pin
BupeChombaDerrick13-Feb-12 13:06
BupeChombaDerrick13-Feb-12 13:06 
AnswerRe: how do i design a database system for an app? Pin
Mycroft Holmes13-Feb-12 13:35
professionalMycroft Holmes13-Feb-12 13:35 
AnswerRe: how do i design a database system for an app? Pin
Shameel13-Feb-12 18:41
professionalShameel13-Feb-12 18:41 
GeneralRe: how do i design a database system for an app? Pin
BupeChombaDerrick14-Feb-12 2:49
BupeChombaDerrick14-Feb-12 2:49 
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 

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.