Wednesday, February 27, 2013

Database mail profiles information


USE msdb
GO
SELECT * FROM dbo.sysmail_profile
GO


USE MSDB
GO
SELECT * FROM dbo.sysmail_server---servername
SELECT * FROM dbo.sysmail_log---gives description in detail


---to delete any old and not useful mail profile use
DELETE FROM  dbo.sysmail_profile
WHERE name = 'xyz'

1 comment:

https://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context...