How to Fix “Unable to create restore plan due to break in the LSN chain” When Using the Restore Wizard in...











up vote
0
down vote

favorite












This question is about regaining functionality of the SSMS Restore Database Wizard / GUI assistant. I would appreciate it if there are no responses along the lines of "don't use it - script it instead".



If I try to invoke Restore Database on a few of our databases, the Restore Database Wizard / Dialog reports "Unable to create restore plan due to break in the LSN chain". (As an aside, it does so in SSMS 2016 and SSMS 2012 - SSMS 2014 simply never responds.)



Link to screenshot



In each case, this occurred after a database was restored and I suspect a log file backup occurred before a full backup took place.
Since then each of our affected databases have had many weekly full backups (we are talking six months worth for one particular case) but the chain is still preventing the wizard from being used.



Some databases are on SQL Server 2008R2 SP3 and others on 2014 SP3.



Now I've analysed msdb.dbo.backupset (I am quite comfortable with how LSN chains work) and each full backup (for any given affected database) has an unbroken chain.



To keep our history in line with our retention policy we perform msdb.dbo.sp_delete_backuphistory on a weekly basis keeping a month's worth of history. This obviously leaves "orphaned" backup sets but must be a red herring as the vast majority of our databases have this and they have no issues.



The time period from when his issue was first detected has long since gone from msdb.dbo.backupset.



Are there any ideas of how SSMS calculates its results for the wizard? Is there another repository of backup / LSN chain information other than msdb.dbo.backupset that I should be checking?



Thanks.



John










share|improve this question


















  • 1




    You can hook up SQL Profiler and see what commands and queries it issues to figure out its results; that might help you along. Ultimately, though, you're asking why a particular closed-source GUI app does something interesting when you suspect it is in the wrong for doing that interesting thing, which is probably something better suited for Microsoft support than SO.
    – Jeroen Mostert
    Nov 22 at 13:00










  • What version of SSMS are you using? I ask because in the release notes for the latest (as of this writing) version has mention of fixing a bug that might cause what you're experiencing. feedback.azure.com/forums/908035-sql-server/suggestions/…
    – Ben Thul
    Nov 26 at 17:57










  • Hi Ben. I am using SSMS 2012, 2014 and 2016. From your link, I've just installed SSMS 18 preview 5 and it would appear to have fixed this issue (which would appear to be years old). At least I've got a workaround until it is officially released. Thanks for the info.
    – TiVo
    Nov 27 at 10:55












  • Ben if you add your suggestion as an answer, I can mark it as a solution.
    – TiVo
    Nov 27 at 11:03















up vote
0
down vote

favorite












This question is about regaining functionality of the SSMS Restore Database Wizard / GUI assistant. I would appreciate it if there are no responses along the lines of "don't use it - script it instead".



If I try to invoke Restore Database on a few of our databases, the Restore Database Wizard / Dialog reports "Unable to create restore plan due to break in the LSN chain". (As an aside, it does so in SSMS 2016 and SSMS 2012 - SSMS 2014 simply never responds.)



Link to screenshot



In each case, this occurred after a database was restored and I suspect a log file backup occurred before a full backup took place.
Since then each of our affected databases have had many weekly full backups (we are talking six months worth for one particular case) but the chain is still preventing the wizard from being used.



Some databases are on SQL Server 2008R2 SP3 and others on 2014 SP3.



Now I've analysed msdb.dbo.backupset (I am quite comfortable with how LSN chains work) and each full backup (for any given affected database) has an unbroken chain.



To keep our history in line with our retention policy we perform msdb.dbo.sp_delete_backuphistory on a weekly basis keeping a month's worth of history. This obviously leaves "orphaned" backup sets but must be a red herring as the vast majority of our databases have this and they have no issues.



The time period from when his issue was first detected has long since gone from msdb.dbo.backupset.



Are there any ideas of how SSMS calculates its results for the wizard? Is there another repository of backup / LSN chain information other than msdb.dbo.backupset that I should be checking?



Thanks.



John










share|improve this question


















  • 1




    You can hook up SQL Profiler and see what commands and queries it issues to figure out its results; that might help you along. Ultimately, though, you're asking why a particular closed-source GUI app does something interesting when you suspect it is in the wrong for doing that interesting thing, which is probably something better suited for Microsoft support than SO.
    – Jeroen Mostert
    Nov 22 at 13:00










  • What version of SSMS are you using? I ask because in the release notes for the latest (as of this writing) version has mention of fixing a bug that might cause what you're experiencing. feedback.azure.com/forums/908035-sql-server/suggestions/…
    – Ben Thul
    Nov 26 at 17:57










  • Hi Ben. I am using SSMS 2012, 2014 and 2016. From your link, I've just installed SSMS 18 preview 5 and it would appear to have fixed this issue (which would appear to be years old). At least I've got a workaround until it is officially released. Thanks for the info.
    – TiVo
    Nov 27 at 10:55












  • Ben if you add your suggestion as an answer, I can mark it as a solution.
    – TiVo
    Nov 27 at 11:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











This question is about regaining functionality of the SSMS Restore Database Wizard / GUI assistant. I would appreciate it if there are no responses along the lines of "don't use it - script it instead".



If I try to invoke Restore Database on a few of our databases, the Restore Database Wizard / Dialog reports "Unable to create restore plan due to break in the LSN chain". (As an aside, it does so in SSMS 2016 and SSMS 2012 - SSMS 2014 simply never responds.)



Link to screenshot



In each case, this occurred after a database was restored and I suspect a log file backup occurred before a full backup took place.
Since then each of our affected databases have had many weekly full backups (we are talking six months worth for one particular case) but the chain is still preventing the wizard from being used.



Some databases are on SQL Server 2008R2 SP3 and others on 2014 SP3.



Now I've analysed msdb.dbo.backupset (I am quite comfortable with how LSN chains work) and each full backup (for any given affected database) has an unbroken chain.



To keep our history in line with our retention policy we perform msdb.dbo.sp_delete_backuphistory on a weekly basis keeping a month's worth of history. This obviously leaves "orphaned" backup sets but must be a red herring as the vast majority of our databases have this and they have no issues.



The time period from when his issue was first detected has long since gone from msdb.dbo.backupset.



Are there any ideas of how SSMS calculates its results for the wizard? Is there another repository of backup / LSN chain information other than msdb.dbo.backupset that I should be checking?



Thanks.



John










share|improve this question













This question is about regaining functionality of the SSMS Restore Database Wizard / GUI assistant. I would appreciate it if there are no responses along the lines of "don't use it - script it instead".



If I try to invoke Restore Database on a few of our databases, the Restore Database Wizard / Dialog reports "Unable to create restore plan due to break in the LSN chain". (As an aside, it does so in SSMS 2016 and SSMS 2012 - SSMS 2014 simply never responds.)



Link to screenshot



In each case, this occurred after a database was restored and I suspect a log file backup occurred before a full backup took place.
Since then each of our affected databases have had many weekly full backups (we are talking six months worth for one particular case) but the chain is still preventing the wizard from being used.



Some databases are on SQL Server 2008R2 SP3 and others on 2014 SP3.



Now I've analysed msdb.dbo.backupset (I am quite comfortable with how LSN chains work) and each full backup (for any given affected database) has an unbroken chain.



To keep our history in line with our retention policy we perform msdb.dbo.sp_delete_backuphistory on a weekly basis keeping a month's worth of history. This obviously leaves "orphaned" backup sets but must be a red herring as the vast majority of our databases have this and they have no issues.



The time period from when his issue was first detected has long since gone from msdb.dbo.backupset.



Are there any ideas of how SSMS calculates its results for the wizard? Is there another repository of backup / LSN chain information other than msdb.dbo.backupset that I should be checking?



Thanks.



John







sql-server ssms database-restore






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 at 12:48









TiVo

11




11








  • 1




    You can hook up SQL Profiler and see what commands and queries it issues to figure out its results; that might help you along. Ultimately, though, you're asking why a particular closed-source GUI app does something interesting when you suspect it is in the wrong for doing that interesting thing, which is probably something better suited for Microsoft support than SO.
    – Jeroen Mostert
    Nov 22 at 13:00










  • What version of SSMS are you using? I ask because in the release notes for the latest (as of this writing) version has mention of fixing a bug that might cause what you're experiencing. feedback.azure.com/forums/908035-sql-server/suggestions/…
    – Ben Thul
    Nov 26 at 17:57










  • Hi Ben. I am using SSMS 2012, 2014 and 2016. From your link, I've just installed SSMS 18 preview 5 and it would appear to have fixed this issue (which would appear to be years old). At least I've got a workaround until it is officially released. Thanks for the info.
    – TiVo
    Nov 27 at 10:55












  • Ben if you add your suggestion as an answer, I can mark it as a solution.
    – TiVo
    Nov 27 at 11:03














  • 1




    You can hook up SQL Profiler and see what commands and queries it issues to figure out its results; that might help you along. Ultimately, though, you're asking why a particular closed-source GUI app does something interesting when you suspect it is in the wrong for doing that interesting thing, which is probably something better suited for Microsoft support than SO.
    – Jeroen Mostert
    Nov 22 at 13:00










  • What version of SSMS are you using? I ask because in the release notes for the latest (as of this writing) version has mention of fixing a bug that might cause what you're experiencing. feedback.azure.com/forums/908035-sql-server/suggestions/…
    – Ben Thul
    Nov 26 at 17:57










  • Hi Ben. I am using SSMS 2012, 2014 and 2016. From your link, I've just installed SSMS 18 preview 5 and it would appear to have fixed this issue (which would appear to be years old). At least I've got a workaround until it is officially released. Thanks for the info.
    – TiVo
    Nov 27 at 10:55












  • Ben if you add your suggestion as an answer, I can mark it as a solution.
    – TiVo
    Nov 27 at 11:03








1




1




You can hook up SQL Profiler and see what commands and queries it issues to figure out its results; that might help you along. Ultimately, though, you're asking why a particular closed-source GUI app does something interesting when you suspect it is in the wrong for doing that interesting thing, which is probably something better suited for Microsoft support than SO.
– Jeroen Mostert
Nov 22 at 13:00




You can hook up SQL Profiler and see what commands and queries it issues to figure out its results; that might help you along. Ultimately, though, you're asking why a particular closed-source GUI app does something interesting when you suspect it is in the wrong for doing that interesting thing, which is probably something better suited for Microsoft support than SO.
– Jeroen Mostert
Nov 22 at 13:00












What version of SSMS are you using? I ask because in the release notes for the latest (as of this writing) version has mention of fixing a bug that might cause what you're experiencing. feedback.azure.com/forums/908035-sql-server/suggestions/…
– Ben Thul
Nov 26 at 17:57




What version of SSMS are you using? I ask because in the release notes for the latest (as of this writing) version has mention of fixing a bug that might cause what you're experiencing. feedback.azure.com/forums/908035-sql-server/suggestions/…
– Ben Thul
Nov 26 at 17:57












Hi Ben. I am using SSMS 2012, 2014 and 2016. From your link, I've just installed SSMS 18 preview 5 and it would appear to have fixed this issue (which would appear to be years old). At least I've got a workaround until it is officially released. Thanks for the info.
– TiVo
Nov 27 at 10:55






Hi Ben. I am using SSMS 2012, 2014 and 2016. From your link, I've just installed SSMS 18 preview 5 and it would appear to have fixed this issue (which would appear to be years old). At least I've got a workaround until it is officially released. Thanks for the info.
– TiVo
Nov 27 at 10:55














Ben if you add your suggestion as an answer, I can mark it as a solution.
– TiVo
Nov 27 at 11:03




Ben if you add your suggestion as an answer, I can mark it as a solution.
– TiVo
Nov 27 at 11:03

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431407%2fhow-to-fix-unable-to-create-restore-plan-due-to-break-in-the-lsn-chain-when-us%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431407%2fhow-to-fix-unable-to-create-restore-plan-due-to-break-in-the-lsn-chain-when-us%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

Alexandru Averescu

Trompette piccolo