Re: SQL2K5 Fehler Task 'Operator benachrichtigen'

Tech-Archive recommends: Fix windows errors by optimizing your registry



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)

.



Relevant Pages

  • Deploying script - Permission
    ... update a profile by following:- ... execute a command on the application folder to restart service c: ... specific files from netlogon to client's PC(using domain admin ... I can't use domain user account to accomplish this - ...
    (microsoft.public.windows.server.general)
  • Re: setting up different accounts
    ... account to only the users accountthat are supposed to use it. ... directory permissions so that that user does not have rights in a particular ... folder or to execute a particular file. ... The ALL USER profile is what it says.. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: 1 Notebook unable to log in
    ... NETDOM RESETPWD Resets the machine account password for the domain ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... | need to migrate their old domain profile [favorites, My Documents, ...
    (microsoft.public.windows.server.sbs)
  • Re: MSN Dial Up Wiped Out Mysteriously
    ... | a corrupted profile can produce all the symptoms I mentioned. ... | to somehow create a new account, move things over from the corrupt ... | then eliminate the corrupt account. ... | dialogue box and click on "Properties" nothing comes up or happens. ...
    (microsoft.public.win2000.general)
  • Re: Outlook 2003 and XP SP2
    ... profile, ... You can only have one exchange account ... Diane Poremsky [MVP - Outlook] ... Outlook & Exchange Solutions Center: http://www.slipstick.com ...
    (microsoft.public.office.setup)