Home » SQL Server Error : 14607, Severity: 16. %s name is not valid

SQL Server Error : 14607, Severity: 16. %s name is not valid

sql server DBA 999

SQL Server Error : 14607 Details


SQL Server Error: 14607
Severity: 16
Event Logged or not: No
Description:
%s name is not valid
Severity 16 Description:
Indicates general errors that can be corrected by the user.

Cause of Error:

For SQL Server Emailing, we need to create an database mail account and then a database mail profile.

If we send a email with below on SQL Management Studio and executed the following script:

@recipients=’[email protected]’, @profile name = ‘Profilename’, EXEC msdb.dbo.sp send dbmail @subject =’test email,’ @body =’test email,’ @body format =’HTML’

We can have a job failed due to an error below for any other user trying to send a email with database mail profile above which is not made public.

The profile name is incorrect. 42000 [SQLSTATE] Error 14607.

Reading sql server error log location from SQL Query

Identifying SQL Server Error Log File used by SQL Server Database Engine can be done by reading SQL Server Error Logs. DBA can execute the XP_READERRORLOG extended stored procedure to read the SQL Server Error Log and search for its location used by the instance of SQL Server.

USE master
Go
xp_readerrorlog 0, 1, N'Logging SQL Server messages in file', NULL, NULL, N'asc'
Go

Solution for Resolving the Error

The profile we created may not be made public and we have to change it security and make it Public.

So from SSMS (SQL management Studio), navigate to Database mail -> Configure Database mail, and select option-> Manage Profile Security.

Making it public profile allows guest and other account access too.

SQL Server Error Code and solution summary


SQL Server Error: 14607
Severity: 16
Event Logged or not: No
Description:
%s name is not valid

A Database mail profile needs to be made public for other users to be able to use it in Database mail -> Configure Database mail, and select option-> Manage Profile Security.

Leave a Reply

Your email address will not be published. Required fields are marked *