{"id":165276,"date":"2024-04-17T11:37:48","date_gmt":"2024-04-17T11:37:48","guid":{"rendered":"https:\/\/www.stellarinfo.com\/blog\/?p=165276"},"modified":"2024-05-30T04:36:52","modified_gmt":"2024-05-30T04:36:52","slug":"repair-database-corruption-gam-sgam-and-iam-in-sql-server","status":"publish","type":"post","link":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/","title":{"rendered":"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><?xml encoding=\"utf-8\" ?><p>In SQL Server, a&nbsp;page&nbsp;is the fundamental unit for storing data and extents are the basic unit that help in efficiently managing the pages. An&nbsp;extent&nbsp;is a combination of eight physically connecting pages. In SQL Server, there are two types of allocation maps used for recording the extent of allocation &ndash; Global Allocation MAP (GAM) and Shared Global Allocation MAP (SGAM). There is another page, called Index Allocation Map (IAM)&nbsp;that maps the extents in the 4-GB part of the SQL Server database file utilized by an allocation unit.&nbsp;Sometimes, these SQL database pages get corrupted or damaged due to various reasons, requiring repair of database corruption. In this post, we will see how to diagnose and <a href=\"https:\/\/www.stellarinfo.com\/sql-database-repair.php\" target=\"_blank\" rel=\"noreferrer noopener\">repair SQL database corruption<\/a> &ndash; GAM, SGAM, and IAM page corruption issues in SQL Server. &nbsp;<\/p><h2 class=\"wp-block-heading\" id=\"what-are-the-gam,-sgam,-and-iam-pages?\"><strong>What are the GAM, SGAM, and IAM Pages?<\/strong><\/h2><p>Global Allocation Pages (GAM) are responsible for handling allocation extents, inside the database. They help in identifying free extents when required.<\/p><p>Shared Allocation Map (SGAM) pages are like granular maps. They handle the allocation of extents with specific file groups in the database.<\/p><p>Index Allocation Map (IAM) pages are special internal pages that act like a registry for data storage. They track the data page&rsquo;s location in the database file.<\/p><h2 class=\"wp-block-heading\" id=\"how-to-diagnose-gam,-sgam,-and-iam-page-errors?\"><strong>How to Diagnose GAM, SGAM, and IAM Page Errors?<\/strong><\/h2><p>When you run queries, you may face an error message similar to this one:<\/p><pre class=\"wp-block-code command_container\"><code>Msg 8905, Level 16, State 1, Line 1\n\nExtent (5678:1234) in database ID 10 is marked allocated in the GAM, but no SGAM or IAM has allocated it.<\/code><\/pre><p>This error indicates that the GAM page is corrupt.<\/p><p>Another way to detect errors in database pages is by <a href=\"https:\/\/www.stellarinfo.com\/blog\/how-to-repair-sql-database-using-dbcc-checkdb-command\/\" target=\"_blank\" rel=\"noreferrer noopener\">using the DBCC CHECKDB co<\/a><a href=\"https:\/\/www.stellarinfo.com\/blog\/how-to-repair-sql-database-using-dbcc-checkdb-command\/\">mmand<\/a> (see the below example).<\/p><pre class=\"wp-block-code command_container\"><code>DBCC CHECKDB (stellardb)\n\nGO<\/code><\/pre><p>There is an undocumented command, named dbcc PAGE. This is an internal command used by Microsoft. However, you can use it to diagnose the database pages. Here&rsquo;s the code to use this command.<\/p><pre class=\"wp-block-code command_container\"><code>DBCC PAGE (stellardb, 1, 354, WITH NOHEADER)\n\nGO<\/code><\/pre><p>Here, stellardb is the database name, 1 is the file number, and 354 is the page number.<\/p><h2 class=\"wp-block-heading\" id=\"how-to-fix-corruption-in-sql-database-gam,-sgam,-and-iam-pages?\"><strong>How to Fix Corruption in SQL Database GAM, SGAM, and IAM Pages?<\/strong><\/h2><p>Here are some solutions to fix the GAM, SGAM, and IAM page errors, and corruption in the SQL database.<\/p><h3 class=\"wp-block-heading\" id=\"h-restore-database-from-backup\"><strong>Restore Database from Backup<\/strong><\/h3><p>If you have a backup, you can use it to restore your data. Here are the steps to restore database backup using SQL Server Management Studio (SSMS):<\/p><ul class=\"wp-block-list\">\n<li>In SQL Server Management Studio (SSMS), go to <strong>Object Explorer <\/strong>and right-click on Databases.<\/li>\n\n\n\n<li>Then, select the <strong>Restore Database <\/strong>option.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"504\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/object-explorer-dashboard.png\" alt=\"Go to Object Explorer and right-click on Databases. Then, select the Restore Database option.\" class=\"wp-image-165281 apply-gradient-on-post-images\" style=\"width:385px;height:auto\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/object-explorer-dashboard.png 591w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/object-explorer-dashboard-300x256.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/object-explorer-dashboard-150x128.png 150w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Select the Device option on the <strong>General <\/strong>page and then press the <strong>Browse<\/strong> button to select the backup and press <strong>OK.<\/strong> <\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"780\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Device-option-on-the-General-page.png\" alt=\"Device option on the General page\" class=\"wp-image-165282 apply-gradient-on-post-images\" style=\"width:561px;height:auto\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Device-option-on-the-General-page.png 863w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Device-option-on-the-General-page-300x271.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Device-option-on-the-General-page-768x694.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Device-option-on-the-General-page-150x136.png 150w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/figure>\n<\/div><h3 class=\"wp-block-heading\" id=\"h-use-dbcc-checkdb-command\"><strong>Use DBCC CHECKDB Command<\/strong><\/h3><p>To fix the GAM, SGAM, and IAM page errors, and database corruption, you can use the DBCC CHECKDB command in SQL Server. Here&rsquo;s the code to repair the database using the DBCC CHECKDB command:<\/p><pre class=\"wp-block-code command_container\"><code>USE master;\nGO\nALTER DATABASE stellar\nSET SINGLE_USER\nWITH ROLLBACK IMMEDIATE;\nGO\n\nDBCC CHECKDB('stellar',REPAIR_REBUILD)\nGO\nALTER DATABASE stellar\nSET MULTI_USER;\nGO<\/code><\/pre><p>The above code will go to the master system database, set the database in single-user mode, repair the database, and bring it back to multi-user mode.<\/p><h3 class=\"wp-block-heading\" id=\"h-use-a-third-party-sql-database-repair-software\"><strong>Use a Third-Party SQL Database Repair Software<\/strong><\/h3><p>If the DBCC CHECKDB command fails to repair the database, you can use third-party SQL repair software, like Stellar Repair for MS SQL. This software can easily repair SQL Server database (mdf and ndf) files. It can recover all the data from corrupted database files and save it in a new database file or various other formats.<\/p><p>To repair the database using Stellar Repair for MS SQL, follow these steps:<\/p><blockquote class=\"note_alert\">\n<p><strong><em>Note:<\/em><\/strong><em> Take the database offline before initialing the repair process.<\/em><\/p>\n<\/blockquote><ul class=\"wp-block-list\">\n<li>Download the software from the <a href=\"https:\/\/cloud.stellarinfo.com\/StellarRepairforMSSQL.exe?_ga=2.252675017.1322121594.1710000012-1608187994.1702348286&amp;_gac=1.128283134.1710000110.Cj0KCQiArrCvBhCNARIsAOkAGcWCTgGQ5jaILoLiJ42eMx45wEg69PnmfpMVuRQcZ6mRZEgfnRsdsAcaAgOtEALw_wcB\" target=\"_blank\" rel=\"noreferrer noopener\">official website<\/a>.<\/li>\n\n\n\n<li>Install the software and launch it.<\/li>\n\n\n\n<li>Click <strong>Browse<\/strong> to select the database file (You can use the <strong>Find <\/strong>button if you do not know where the data file is stored).<\/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\/2024\/04\/browse-corrupt-mdf-file.png\" alt=\"Browse to select the database file\" class=\"wp-image-165285 apply-gradient-on-post-images\" style=\"width:571px;height:auto\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/browse-corrupt-mdf-file.png 778w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/browse-corrupt-mdf-file-300x202.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/browse-corrupt-mdf-file-768x518.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/browse-corrupt-mdf-file-150x101.png 150w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>After selecting the data file, 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=\"778\" height=\"525\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/repair-sql-database.png\" alt=\"browsing the corrupt SQL database and clicking on repair to repair the database\" class=\"wp-image-165286 apply-gradient-on-post-images\" style=\"width:508px;height:auto\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/repair-sql-database.png 778w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/repair-sql-database-300x202.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/repair-sql-database-768x518.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/repair-sql-database-150x101.png 150w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>Once repaired, you can save the data in a new database or other formats, like CSV, HTML, and Excel.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"552\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/saving-options-to-save-database.png\" alt=\"saving options to save the repaired SQL database\" class=\"wp-image-165295 apply-gradient-on-post-images\" style=\"width:480px;height:auto\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/saving-options-to-save-database.png 730w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/saving-options-to-save-database-300x227.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/saving-options-to-save-database-150x113.png 150w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div><h2 class=\"wp-block-heading\" id=\"best-practices-to-prevent-gam,-sgam,-and-iam-pages-corruption\"><strong>Best Practices to Prevent GAM, SGAM, and IAM Pages Corruption<\/strong><\/h2><p>Here are some useful tips you can follow to prevent corruption in SQL Server database pages:<\/p><ul class=\"wp-block-list\">\n<li>Check your hardware, especially your hard drives, to make sure that they are fine. Replace the disks if they&rsquo;re old or throwing errors. If possible, create a mirror RAID for your SQL Server data.<\/li>\n\n\n\n<li>Avoid viruses and malware attacks. Make sure to install Antivirus and Antispam software.<\/li>\n\n\n\n<li>Secure your network with the best firewalls and network segmentation, and encrypt your data. Create secure VPN networks, if applicable.<\/li>\n\n\n\n<li>Make sure to update your operating system and software with the latest updates.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2><p>If the GAM, SGAM, or IAM pages in the database are corrupted, the easiest way is to restore the database from the last backup. If the backup is obsolete or not working, you can try to repair the database using the DBCC CHECKDB command. In some situations, the DBCC CHECKDB command does not work. In this case, you can use <a href=\"https:\/\/www.stellarinfo.com\/sql-recovery.php\" target=\"_blank\" rel=\"noreferrer noopener\">Stellar Repair for MS SQL<\/a>. This software can easily repair the corrupt database and recover all the objects with complete integrity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In SQL Server, a&nbsp;page&nbsp;is the fundamental unit for storing data and extents&hellip; <a class=\"more-link\" href=\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\">Continue reading <span class=\"screen-reader-text\">Repair Database Corruption: GAM, SGAM, and IAM in SQL Server<\/span><\/a><\/p>\n","protected":false},"author":85,"featured_media":165300,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10],"tags":[5782,5783],"class_list":["post-165276","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-recovery","tag-repair-database-corruption","tag-repair-sql-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>Repair Database Corruption: GAM, SGAM, and IAM in SQL Server<\/title>\n<meta name=\"description\" content=\"In this blog explore to diagnos and repair database corruption in SQL Server, focusing on GAM, SGAM, and IAM pages.\" \/>\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\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server\" \/>\n<meta property=\"og:description\" content=\"In this blog explore to diagnos and repair database corruption in SQL Server, focusing on GAM, SGAM, and IAM pages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Stellar Data Recovery Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-17T11:37:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-30T04:36:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\"},\"author\":{\"name\":\"Bharat Bhushan\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a\"},\"headline\":\"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server\",\"datePublished\":\"2024-04-17T11:37:48+00:00\",\"dateModified\":\"2024-05-30T04:36:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\"},\"wordCount\":840,\"image\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg\",\"keywords\":[\"repair database corruption\",\"Repair SQL Database\"],\"articleSection\":[\"SQL Database Repair\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\",\"name\":\"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server\",\"isPartOf\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg\",\"datePublished\":\"2024-04-17T11:37:48+00:00\",\"dateModified\":\"2024-05-30T04:36:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a\"},\"description\":\"In this blog explore to diagnos and repair database corruption in SQL Server, focusing on GAM, SGAM, and IAM pages.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg\",\"contentUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg\",\"width\":1000,\"height\":600,\"caption\":\"Repair Corrupted SQL Database file\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stellarinfo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Repair Database Corruption: GAM, SGAM, and IAM 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":"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server","description":"In this blog explore to diagnos and repair database corruption in SQL Server, focusing on GAM, SGAM, and IAM pages.","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\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server","og_description":"In this blog explore to diagnos and repair database corruption in SQL Server, focusing on GAM, SGAM, and IAM pages.","og_url":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/","og_site_name":"Stellar Data Recovery Blog","article_published_time":"2024-04-17T11:37:48+00:00","article_modified_time":"2024-05-30T04:36:52+00:00","og_image":[{"width":1000,"height":600,"url":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg","type":"image\/jpeg"}],"author":"Bharat Bhushan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bharat Bhushan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#article","isPartOf":{"@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/"},"author":{"name":"Bharat Bhushan","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a"},"headline":"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server","datePublished":"2024-04-17T11:37:48+00:00","dateModified":"2024-05-30T04:36:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/"},"wordCount":840,"image":{"@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg","keywords":["repair database corruption","Repair SQL Database"],"articleSection":["SQL Database Repair"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/","url":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/","name":"Repair Database Corruption: GAM, SGAM, and IAM in SQL Server","isPartOf":{"@id":"https:\/\/www.stellarinfo.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg","datePublished":"2024-04-17T11:37:48+00:00","dateModified":"2024-05-30T04:36:52+00:00","author":{"@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/c2edd14c25759638c6a69f5aececf07a"},"description":"In this blog explore to diagnos and repair database corruption in SQL Server, focusing on GAM, SGAM, and IAM pages.","breadcrumb":{"@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#primaryimage","url":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg","contentUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2024\/04\/Diagnosing-and-Repairing-Critical-Database-Corruption.jpg","width":1000,"height":600,"caption":"Repair Corrupted SQL Database file"},{"@type":"BreadcrumbList","@id":"https:\/\/www.stellarinfo.com\/blog\/repair-database-corruption-gam-sgam-and-iam-in-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stellarinfo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Repair Database Corruption: GAM, SGAM, and IAM 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\/165276","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=165276"}],"version-history":[{"count":31,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/165276\/revisions"}],"predecessor-version":[{"id":170038,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/165276\/revisions\/170038"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/media\/165300"}],"wp:attachment":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=165276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=165276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=165276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}