{"id":122765,"date":"2023-02-02T06:02:12","date_gmt":"2023-02-02T06:02:12","guid":{"rendered":"https:\/\/www.stellarinfo.com\/blog\/?p=122765"},"modified":"2025-08-18T07:00:21","modified_gmt":"2025-08-18T07:00:21","slug":"how-to-rebuild-and-restore-master-database-in-sql-server","status":"publish","type":"post","link":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/","title":{"rendered":"How to Rebuild and Restore Master Database in SQL Server?"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><?xml encoding=\"utf-8\" ?><p>In SQL Server, there are system databases, like master database, msdb, and tempdb that are used by SQL Server for internal use. The master database is the main database in SQL Server. It stores system information, like logins, linked servers, databases, etc. If this database fails, the SQL Server will completely fail.<\/p><p>Below, we&rsquo;ll see how to repair, restore, and rebuild the master database in SQL Server.<\/p><h2 class=\"wp-block-heading\" id=\"repair-the-database-using-setup-installer\"><strong>Repair the Database using Setup Installer<\/strong><\/h2><p>The SQL Server installer has an option to repair the database. This option will allow you to repair the SQL Server database, including the master database. To use this option, follow these steps:<\/p><ul class=\"wp-block-list\">\n<li>Run the setup.exe in your SQL Server installer folder.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"508\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/setup-exe.png\" alt=\"Image of setup.exe file to be run\" class=\"wp-image-122766 apply-gradient-on-post-images\" style=\"width:632px;height:381px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/setup-exe.png 843w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/setup-exe-300x181.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/setup-exe-768x463.png 768w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Go to <strong>Maintenance <\/strong>and select the <strong>Repair<\/strong> option.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"773\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Repair-sql-installation-1024x773.png\" alt=\"Image of SQL server installation guide. Go to Maintenance tab and click on Repair\" class=\"wp-image-122767 apply-gradient-on-post-images\" style=\"width:768px;height:580px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Repair-sql-installation-1024x773.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Repair-sql-installation-300x227.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Repair-sql-installation-768x580.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Repair-sql-installation.png 1180w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Select the instance to repair and press <strong>Next<\/strong>.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"610\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/server-instance-in-repair.png\" alt=\"Image of Repair window, go to select instance and select the instance to repair\" class=\"wp-image-122768 apply-gradient-on-post-images\" style=\"width:606px;height:458px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/server-instance-in-repair.png 808w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/server-instance-in-repair-300x226.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/server-instance-in-repair-768x580.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Finally, press the <strong>Repair<\/strong> button.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"610\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/ready-to-repair.png\" alt=\"Image of ready to repair tab\" class=\"wp-image-122769 apply-gradient-on-post-images\" style=\"width:606px;height:458px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/ready-to-repair.png 808w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/ready-to-repair-300x226.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/ready-to-repair-768x580.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/figure>\n<\/div><h2 class=\"wp-block-heading\" id=\"restore-the-master-database\"><strong>Restore the Master Database<\/strong><\/h2><p>If you have a backup of the database, you can use it to restore the database. However, the master database is a special database and it cannot be restored as other databases. You need to first run the SQL Service in single-user mode. To do this, open the SQL Server Configuration Manager.<\/p><ul class=\"wp-block-list\">\n<li>Go to <strong>SQL Server Services <\/strong>and select the Service instance that you want to work with. Right-click the instance and click <strong>Stop<\/strong>.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1024x504.png\" alt=\"Image of SQL Server set to Stop under SQL Server Services in SQL Server Configuration Manager\" class=\"wp-image-122770 apply-gradient-on-post-images\" style=\"width:768px;height:378px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1024x504.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-300x148.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-768x378.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server.png 1060w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Right-click the instance again and select <strong>Properties.<\/strong><\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"401\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/SQL-Server-properties-in-config-manager.png\" alt=\"Image of right-click on SQL Server instance and selecting Properties\" class=\"wp-image-122771 apply-gradient-on-post-images\" style=\"width:467px;height:301px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/SQL-Server-properties-in-config-manager.png 623w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/SQL-Server-properties-in-config-manager-300x193.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Go to the <strong>Startup Parameters<\/strong>, specify the <strong>-m<\/strong> parameter, and press the <strong>Add <\/strong>button.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"786\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/startup-parameters.png\" alt=\"Image of Startup parameters specified under SQL Server Properties\" class=\"wp-image-122772 apply-gradient-on-post-images\" style=\"width:465px;height:590px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/startup-parameters.png 620w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/startup-parameters-237x300.png 237w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Here, <strong>-m<\/strong> is used to set the instance to single-user mode.<\/li>\n<\/ul><p>Optionally, you can use the -f start option to set the instance with minimal configurations.<\/p><p>If you prefer to set the SQL Server instance in single-user mode using the command line, run the following commands.<\/p><pre class=\"wp-block-code command_container\"><code>NET STOP MSSQLSERVER<\/code><\/pre><pre class=\"wp-block-code command_container\"><code>NET START MSSQLSERVER \/m<\/code><\/pre><p>The first line is to stop the SQL Server. Use the correct SQL Server instance name. Here, MSSQLServer is used as an example.<\/p><p>The second line will start the SQL Server instance in single-user mode.<\/p><p>Once the database is in single-user mode, you can connect with the SQLCMD and restore the database by using the following command:<\/p><pre class=\"wp-block-code command_container\"><code>SQLCMD -S MSSQLServer -E -d master<\/code><\/pre><p>Here, MSSQLSERVER is the server&rsquo;s name, -E is to connect with Windows Authentication, -S is to provide the instance name, and -d is to specify the database to connect.<\/p><p>Finally, run the below restore command to restore the database.<\/p><pre class=\"wp-block-code command_container\"><code>restore database master from disk = 'c:\\stellarbackups\\master.bak' with replace;<\/code><\/pre><h2 class=\"wp-block-heading\" id=\"rebuild-the-master-database\"><strong>Rebuild the Master Database<\/strong><\/h2><p>There is an option to rebuild the database using the command line. In the SQL Server installer, look for the setup.exe and run the following command:<\/p><pre class=\"wp-block-code command_container\"><code>setup \/QUIET \/ACTION=REBUILDDATABASE \/INSTANCENAME=MSSQLServer \/SQLSYSADMINACCOUNTS=sa&nbsp; \/SAPWD= MyP983&rdquo;#3&nbsp; \/SQLCOLLATION=Latin1_General_CI_AS<\/code><\/pre><p>Here, MSSQLServer is the instance name, SQLSYSADMINACCOUNTS is the system administrator user, SAPWD is the password, and CollationName is the collation used.<\/p><h2 class=\"wp-block-heading\" id=\"an-alternative-solution-to-repair-and-restore-sql-database\"><strong>An Alternative Solution to Repair and Restore SQL Database<\/strong><\/h2><p>Another solution is to use a third-party SQL database repair tool, such as <a href=\"https:\/\/www.stellarinfo.com\/sql-recovery.php\" target=\"_blank\" rel=\"noreferrer noopener\">Stellar Repair for MS SQL<\/a>. This software can repair corrupt SQL server databases. The MDF and NDF files are used to store the information. This software restores these files if they are corrupted. This software is compatible with all SQL Server versions. The software is intuitive and simple to use. Just follow the below steps:<\/p><ul class=\"wp-block-list\">\n<li>Launch the software and browse to the location of the master database file. To know the master database location, you can use the Find button in the application.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"525\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/find-database.png\" alt=\"Image of Find database in application\" class=\"wp-image-122773 apply-gradient-on-post-images\" style=\"width:584px;height:394px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/find-database.png 778w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/find-database-300x202.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/find-database-768x518.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n<\/div><p>Once the application finds your master.mdf file, select it, and press the Repair button. You can also check the Include Deleted Records checkbox to recover deleted records.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"525\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/repair-database.png\" alt=\"Image of Repair in the software\" class=\"wp-image-122774 apply-gradient-on-post-images\" style=\"width:584px;height:394px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/repair-database.png 778w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/repair-database-300x202.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/repair-database-768x518.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>You can also export the data to different formats, like Excel, CSV, and HTML.<\/li>\n<\/ul><blockquote class=\"note_alert\">\n<p><em><strong>Note:<\/strong> It is important to have your SQL Server service stopped to repair the file. If the file is in use, an error message will be displayed.<\/em><\/p>\n<\/blockquote><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1-1024x504.png\" alt=\"Image of SQL Server set to Stop under SQL Server Services\" class=\"wp-image-122775 apply-gradient-on-post-images\" style=\"width:768px;height:378px\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1-1024x504.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1-300x148.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1-768x378.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/Stop-SQL-Server-1.png 1060w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div><h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2><p>The master database is basically the main system database in SQL Server that stores server properties. In this article, we learned how to repair the master database using the installer. In addition, we learned how to rebuild and restore the master database. We also mentioned a SQL repair tool, named Stellar Repair for MS SQL that can easily repair SQL Server databases and restore all the database objects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In SQL Server, there are system databases, like master database, msdb, and&hellip; <a class=\"more-link\" href=\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\">Continue reading <span class=\"screen-reader-text\">How to Rebuild and Restore Master Database in SQL Server?<\/span><\/a><\/p>\n","protected":false},"author":85,"featured_media":123110,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10],"tags":[4468],"class_list":["post-122765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-recovery","tag-rebuild-and-restore-master-database","entry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Rebuild and Restore Master Database in SQL Server?<\/title>\n<meta name=\"description\" content=\"There are system databases that are used by SQL Server for internal use. In this blog, we will learn how to rebuild and restore master db.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Rebuild and Restore Master Database in SQL Server?\" \/>\n<meta property=\"og:description\" content=\"There are system databases that are used by SQL Server for internal use. In this blog, we will learn how to rebuild and restore master db.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Stellar Data Recovery Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-02T06:02:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-18T07:00:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Bharat Bhushan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bharat Bhushan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\"},\"author\":{\"name\":\"Bharat Bhushan\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a\"},\"headline\":\"How to Rebuild and Restore Master Database in SQL Server?\",\"datePublished\":\"2023-02-02T06:02:12+00:00\",\"dateModified\":\"2025-08-18T07:00:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\"},\"wordCount\":686,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg\",\"keywords\":[\"rebuild and restore master database\"],\"articleSection\":[\"SQL Database Repair\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\",\"name\":\"How to Rebuild and Restore Master Database in SQL Server?\",\"isPartOf\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg\",\"datePublished\":\"2023-02-02T06:02:12+00:00\",\"dateModified\":\"2025-08-18T07:00:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a\"},\"description\":\"There are system databases that are used by SQL Server for internal use. In this blog, we will learn how to rebuild and restore master db.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg\",\"contentUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg\",\"width\":1000,\"height\":600,\"caption\":\"Image of How to Rebuild and Restore Master Database in SQL Server blog thumbnail\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stellarinfo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Rebuild and Restore Master Database in SQL Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#website\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/\",\"name\":\"Stellar Data Recovery Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stellarinfo.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a\",\"name\":\"Bharat Bhushan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8371107c793354293acf244b899d7bf7f4209ee58e4305f3b195241bd426ef12?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8371107c793354293acf244b899d7bf7f4209ee58e4305f3b195241bd426ef12?s=96&d=mm&r=g\",\"caption\":\"Bharat Bhushan\"},\"description\":\"Bharat Bhushan is an experienced technical Marketer working at Stellar Data Recovery - expertise in data care. He is skilled in Microsoft Exchange Database, MSSQL Database troubleshooting &amp; data warehousing. He is a Management Post Graduate having a strong grip in Technology &amp; certified in SAP-SD, Oracle 10g &amp; Informatica Powercenter 9.1.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/bharat-bhushan-311956144\/\"],\"url\":\"https:\/\/www.stellarinfo.com\/blog\/author\/bharat\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Rebuild and Restore Master Database in SQL Server?","description":"There are system databases that are used by SQL Server for internal use. In this blog, we will learn how to rebuild and restore master db.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Rebuild and Restore Master Database in SQL Server?","og_description":"There are system databases that are used by SQL Server for internal use. In this blog, we will learn how to rebuild and restore master db.","og_url":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/","og_site_name":"Stellar Data Recovery Blog","article_published_time":"2023-02-02T06:02:12+00:00","article_modified_time":"2025-08-18T07:00:21+00:00","og_image":[{"width":1000,"height":600,"url":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg","type":"image\/jpeg"}],"author":"Bharat Bhushan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bharat Bhushan","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#article","isPartOf":{"@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/"},"author":{"name":"Bharat Bhushan","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a"},"headline":"How to Rebuild and Restore Master Database in SQL Server?","datePublished":"2023-02-02T06:02:12+00:00","dateModified":"2025-08-18T07:00:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/"},"wordCount":686,"commentCount":0,"image":{"@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg","keywords":["rebuild and restore master database"],"articleSection":["SQL Database Repair"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/","url":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/","name":"How to Rebuild and Restore Master Database in SQL Server?","isPartOf":{"@id":"https:\/\/www.stellarinfo.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg","datePublished":"2023-02-02T06:02:12+00:00","dateModified":"2025-08-18T07:00:21+00:00","author":{"@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a"},"description":"There are system databases that are used by SQL Server for internal use. In this blog, we will learn how to rebuild and restore master db.","breadcrumb":{"@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#primaryimage","url":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg","contentUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2023\/02\/How-to-Rebuild-and-Restore-Master-Database-in-SQL-Server.jpg","width":1000,"height":600,"caption":"Image of How to Rebuild and Restore Master Database in SQL Server blog thumbnail"},{"@type":"BreadcrumbList","@id":"https:\/\/www.stellarinfo.com\/blog\/how-to-rebuild-and-restore-master-database-in-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stellarinfo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Rebuild and Restore Master Database in SQL Server?"}]},{"@type":"WebSite","@id":"https:\/\/www.stellarinfo.com\/blog\/#website","url":"https:\/\/www.stellarinfo.com\/blog\/","name":"Stellar Data Recovery Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stellarinfo.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a","name":"Bharat Bhushan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8371107c793354293acf244b899d7bf7f4209ee58e4305f3b195241bd426ef12?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8371107c793354293acf244b899d7bf7f4209ee58e4305f3b195241bd426ef12?s=96&d=mm&r=g","caption":"Bharat Bhushan"},"description":"Bharat Bhushan is an experienced technical Marketer working at Stellar Data Recovery - expertise in data care. He is skilled in Microsoft Exchange Database, MSSQL Database troubleshooting &amp; data warehousing. He is a Management Post Graduate having a strong grip in Technology &amp; certified in SAP-SD, Oracle 10g &amp; Informatica Powercenter 9.1.","sameAs":["https:\/\/www.linkedin.com\/in\/bharat-bhushan-311956144\/"],"url":"https:\/\/www.stellarinfo.com\/blog\/author\/bharat\/"}]}},"_links":{"self":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/122765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/comments?post=122765"}],"version-history":[{"count":7,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/122765\/revisions"}],"predecessor-version":[{"id":185069,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/122765\/revisions\/185069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/media\/123110"}],"wp:attachment":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=122765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=122765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=122765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}