Re: SQL2K5 Fehler Task 'Operator benachrichtigen'
- From: "Christoph Muthmann" <c.muthmann@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 10 May 2007 13:21:32 +0200
Uwe wrote:
Moin,
ich möchte bei einem Wartungsplan (SQL 2005 Std SP2 DEU) den Task
'Operator benachrichtigen' hinzufügen. Dabei steigt der Plan mit
einem Fehler immer aus:
[snip]
Hallo Uwe,
damit Du aus einem Job oder einer Prozedur Mail versenden kannst, mußt Du ein globales Profil definieren.
Anbei alle Schritte dafür, die ich bei mir ausgeführt habe:
-- Create a Database Mail account
EXECUTE msdb.dbo.sysmail_add_account_sp
@account_name = 'My Public Account',
@description = 'Mail Account für alle My-Aktionen.',
@email_address = 'MeinMailAccount@MeineDomäne',
@replyto_address = 'MeineAntwortadresse@MeineDomäne',
@display_name = 'MeineAntwortadresse',
@mailserver_name = 'MeinMailserver.MeineDomäne',
@use_default_credentials = 1 ;
-- Create a Database Mail profile
EXECUTE msdb.dbo.sysmail_add_profile_sp
@profile_name = 'My Public Profile',
@description = 'Profile used for administrative mail.' ;
-- Add the account to the profile
EXECUTE msdb.dbo.sysmail_add_profileaccount_sp
@profile_name = 'My Public Profile',
@account_name = 'My Public Account',
@sequence_number =1 ;
-- Grant access to the profile to all users in the My_Daten database
Use My_Daten
go
EXECUTE msdb.dbo.sysmail_add_principalprofile_sp
@profile_name = 'My Public Profile',
@principal_name = 'public',
@is_default = 1 ;
-- Große Attachments erlauben (15 MB) Standardwert ist 1000000 Byte = 1 MB
EXECUTE msdb.dbo.sysmail_configure_sp
'MaxFileSize', '15000000' ;
Einen schönen Tag noch,
Christoph
--
(Please post ALL replies to the newsgroup only unless indicated
otherwise)
.
- Prev by Date: Re: ssrs Abonnement und Parameter (Datum)
- Next by Date: Re: AWE mit SQL 2005 SE (Nachtrag)
- Previous by thread: ssrs Abonnement und Parameter (Datum)
- Next by thread: Import einer SQL 2000 DB auf SQL 2005
- Index(es):
Relevant Pages
|