You can also query this data with a select statement: select * from msdb.dbo.sysmail_profile p join msdb.dbo.sysmail_profileaccount pa on p.profile_id = pa.profile_id join msdb.dbo.sysmail_account a on pa.account_id = a.account_id join msdb.dbo.sysmail_server s on a.account_id = s.account_id If it is a migration that would require you to look this info up, I'd suggest the absurdly simple [DBA Tools: Copy db Mail][1]. [1]: https://docs.dbatools.io/#Copy-DbaDbMail/