Hello,
I am so lost .... After upgrading TEST database to Version 11 Weekly Transaction Log Backup was throwing an error. I deleted the job and trying to create a new Maintenance Plan for Transaction Log Backup using a Maintenance Plan Wizard. At the very end I am getting the following error :
'Cannot insert the value NULL into column 'msx_plan', table 'msdb.dbo.sysmaintplan_subplans'; column does not allow nulls. INSERT fails.'
The Plan is still created but it not working : ) Any help would be appreciated!
Thanks,
Sabina
Hi David,
I was able to fix the default value, create a new maintenance plan with no issues. And CHECKDB found 0 allocation errors and 0 consistency errors in database 'msdb'.
I think I lucked out this time. Thank you for your help!
Have a good weekend,
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of David FrederickSent: Thursday, May 17, 2012 3:40 PMTo: Sabina SpilkinSubject: RE: [Tessitura Technical Forum] Transaction Log Backup
Hi Sabina,
My theory is that there are likely other issues in the msdb database than just this one column configured incorrectly. Here are two options I can think of:
1. Carefully fix the default value property of that one column so that it is set properly. Then, try your maintenance plan creation again.
2. Rebuild the msdb database completely. There are instructions for doing that here: http://msdn.microsoft.com/en-us/library/dd207003(v=sql.105).aspx. There is a section in that link called, Creating a New msdb Database. Note the caution they list about what is lost when doing that. No data, just things like jobs, alerts, etc. You could script many of those items through SSMS before rebuilding the Msdb database.
So, #1 would fix this one problem and may be worth trying first, although there is a good chance that is not the only issue. #2 would ensure msdb is in the appropriate state, but you’d have to recreate the objects Microsoft lists in the link above.
There may be other ideas that I’m not thinking of, but that’s what I’d probably be considering myself if I ran into this issue. I hope this helps.
David
_______________________________________________________David FrederickDatabase Applications AnalystSegerstrom Center for the Arts600 Town Center Drive, Costa Mesa, CA 92626T (714) 556-2122 x 4067 E DFrederick@SCFTA.org
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Sabina SpilkinSent: Thursday, May 17, 2012 11:50 AMTo: David FrederickSubject: RE: [Tessitura Technical Forum] Transaction Log Backup
David, you are a life saver !!! We are running the same version of SQL server. And the default value for the msx_plan was not set to 0. What kind of repair you 're referring to ?
Thank you so much,
Sabina (619.615.3904)
From: David Frederick <bounce-davidfrederick9045@tessituranetwork.com>Sent: 5/17/2012 11:48:52 AM
What version of SQL Server are you running? You can get the specific version in SSMS. For example, 10.50.2500.
From what I can tell from our servers running 10.50.2500 (SQL Server 2008 R2 SP1), the sysmaintplan_subplans.msx_plan column is configured to have a default value of 0. In that kind of situation, the error you are receiving should never occur (unless the INSERT statement explicitly tries to set msx_plan to NULL).
You may want to check the column properties. If it is set with a default of 0, then the error message you are receiving may actually be pointing to some other issue. If the column is missing that default setting, then there may be some repair needed to get those tables setup properly.
Here is a screen shot to show what I’m referring to:
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Sabina SpilkinSent: Thursday, May 17, 2012 5:59 AMTo: David FrederickSubject: [Tessitura Technical Forum] Transaction Log Backup
This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!
Privileged And Confidential Communication. This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.