title: Error starting SQL Server 2017 service. Error Code 3417
body: <p>I have SQL Server 2017 installed on my computer. This is what <code>SELECT @@VERSION</code> returns:</p>
  
  <blockquote>
    <p>Microsoft SQL Server 2017 (RTM-GDR) (KB4293803) - 14.0.2002.14 (X64)   Jul 21 2018 07:47:45   Copyright (C) 2017 Microsoft Corporation  Enterprise Edition (64-bit) on Windows 10 Enterprise 10.0  (Build 17134: )`</p>
  </blockquote>
  
  <p>It was working fine until yesterday. Suddenly <code>SQL SERVER Service</code> did not run. When I wanted to run the service manually it showed <code>3417 error</code>. When I checked event log I saw this error:</p>
  
  <blockquote>
    <p>Script level upgrade for database 'master' failed because upgrade step 'msdb110_upgrade.sql' encountered error 200, state 7, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.`</p>
  </blockquote>
  
  <p>After some googling I found out I can run it with <code>/T902 switch</code> and try to fix the problem. But no solution worked for me. So I installed another instance of the same <code>SQL SERVER 2017</code> and restored databases. Now the new installed instance has the same problem.</p>
  
  <p>What could be the problem?</p>