Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 199 The specified '@owner_login_name' is invalid (valid values are returned by sp_helplogins [excluding Windows NT groups]).
Hi guys!
Here's another quick and easy post.
Scenario
I was trying to copy a SQL agent job from one server to another by just copying the script of that SQL job. You can copy any script by right clicking a job > Script job as > create to > new query window.
I pasted the job on a different server and tried to execute it and received this error:
Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 199 The specified '@owner_login_name' is invalid (valid values are returned by sp_helplogins [excluding Windows NT groups]).
This error message is simply saying for the variable '@owner_login_name', the user account associated with the variable is incorrect because it does not exist.
Fix
Simply update the variable for '@owner_login_name' to a valid user account for the current SQL instance.
Now when you execute the script again to create the SQL agent job your results will be:
Command(s) completed successfully.
Thank you and Happy reading,
-marshé hutchinson
#learnSQLwithme
Here's another quick and easy post.
Scenario
I was trying to copy a SQL agent job from one server to another by just copying the script of that SQL job. You can copy any script by right clicking a job > Script job as > create to > new query window.
I pasted the job on a different server and tried to execute it and received this error:
Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 199 The specified '@owner_login_name' is invalid (valid values are returned by sp_helplogins [excluding Windows NT groups]).
This error message is simply saying for the variable '@owner_login_name', the user account associated with the variable is incorrect because it does not exist.
Fix
Simply update the variable for '@owner_login_name' to a valid user account for the current SQL instance.
Now when you execute the script again to create the SQL agent job your results will be:
Command(s) completed successfully.
If you have any further questions, please post below.
Thank you and Happy reading,
-marshé hutchinson
#learnSQLwithme
Hi I have a similar error
ReplyDeleteI was trying to copy a SQL agent job from one server to another by just copying the script of that SQL job. You can copy any script by right clicking a job > Script job as > create to > new query window.
I pasted the job on a different server and tried to execute it and received this error:
Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 251
The specified '@notify_email.operator_name' is invalid (valid values are returned by sp_help_operator).
Above is the error I encounter.
Please help me out with this error.
Hi Jay. Did you check if:
Delete1. there's already a SQL job with the same name on the new server?
2. the new server name was updated in your script or is the script still showing the old server name?
3. your SQL account has permissions to execute the script on the server?