Symptoms

When you try to install Service Pack 2 (SP2) for Microsoft SQL Server 2014, the sqlagent100_msdb_upgrade.sql upgrading script fails, and you receive the following error messages:

Granting login access LoginName to msdb database...

A problem was encountered granting access to MSDB database for login '(null)'. Make sure this login is provisioned with SQLServer and rerun sqlagent_msdb_upgrade.sql  

Adding user UserName to SQLAgentUserRole msdb role...

Granting login access LoginName to msdb database...

A problem was encountered granting access to MSDB database for login '(null)'. Make sure this login is provisioned with SQLServer and rerun sqlagent_msdb_upgrade.sql  

Adding user UserName to SQLAgentUserRole msdb role...

Granting login access LoginName to msdb database...

A problem was encountered granting access to MSDB database for login '(null)'. Make sure this login is provisioned with SQLServer and rerun sqlagent_msdb_upgrade.sql

Msg 574, Level 16, State 0

CONFIG statement cannot be used inside a user transaction

Resolution

This problem is fixed in the following cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

Learn about the terminology that Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Any additional feedback? (Optional)

Thank you for your feedback!

×