{"id":4545,"date":"2015-08-28T04:19:33","date_gmt":"2015-08-28T11:19:33","guid":{"rendered":"http:\/\/3.209.169.194\/blogs\/paul\/?p=4545"},"modified":"2026-06-30T04:24:34","modified_gmt":"2026-06-30T11:24:34","slug":"attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/","title":{"rendered":"&#8220;Attempt to read or write protected memory&#8221; error from SSMS for System.Data"},"content":{"rendered":"<p>I just spent a couple of hours fruitlessly trying to solve a problem and thought I&#8217;d blog the solution in case anyone else hits the issue.<\/p>\n<p>A few months back I got a new laptop and installed SQL Server 2014 on it and everything worked fine. A few weeks ago I installed SQL Server 2008 R2, SQL Server 2012, and Visual Studio 2013. After that, any time I tried to use the Dedicated Admin Connection (DAC) through SSMS, I got this error:<\/p>\n<p><a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/\\L2015\/\\L08\/\\Luntitled.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4546\" src=\"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/\\L2015\/\\L08\/\\Luntitled.jpg\" alt=\"Untitled\" width=\"618\" height=\"171\" \/><\/a><\/p>\n<p>I did some research online and couldn&#8217;t find any solutions that worked. So I tried repairing the installation, installing 2014 SP1 CU2 (latest build at time of writing), and a bunch of other things &#8211; to no avail. I was just about to give up and post a request for help when I thought I&#8217;d do one more search online.<\/p>\n<p>When I did that, I noticed that all the solutions I&#8217;d tried had revolved around the assembly name in the error being something to do with SQL Server. In my case, it was System.Data, which is a .NET assembly. I added that into my search and found a bunch of new hits. Lo and behold, buried in the comments on a <a href=\"http:\/\/stackoverflow.com\/questions\/18837510\/attempted-to-read-or-write-protected-memory-connecting-to-sql-server\" target=\"_blank\">Stack Overflow question<\/a>, I found the solution.<\/p>\n<p>Turns out the problem was because of an upgraded .NET version, and the solution was to run the following from a command line and then reboot:<\/p>\n<p style=\"padding-left: 30px;\"><em>netsh winsock reset<\/em><\/p>\n<p>And after that SSMS worked perfectly.<\/p>\n<p>Hope this post helps others find the answer quickly in future!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just spent a couple of hours fruitlessly trying to solve a problem and thought I&#8217;d blog the solution in case anyone else hits the issue. A few months back I got a new laptop and installed SQL Server 2014 on it and everything worked fine. A few weeks ago I installed SQL Server 2008 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[],"class_list":["post-4545","post","type-post","status-publish","format-standard","hentry","category-tools"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;Attempt to read or write protected memory&quot; error from SSMS for System.Data - Paul S. Randal<\/title>\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.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Attempt to read or write protected memory&quot; error from SSMS for System.Data - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"I just spent a couple of hours fruitlessly trying to solve a problem and thought I&#8217;d blog the solution in case anyone else hits the issue. A few months back I got a new laptop and installed SQL Server 2014 on it and everything worked fine. A few weeks ago I installed SQL Server 2008 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-28T11:19:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-30T11:24:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/2015\/08\/Untitled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"618\" \/>\n\t<meta property=\"og:image:height\" content=\"171\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/\"},\"author\":{\"name\":\"Paul Randal\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/#\\\/schema\\\/person\\\/ffcec826c18782e1e0adf173826a7fce\"},\"headline\":\"&#8220;Attempt to read or write protected memory&#8221; error from SSMS for System.Data\",\"datePublished\":\"2015-08-28T11:19:33+00:00\",\"dateModified\":\"2026-06-30T11:24:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/\"},\"wordCount\":269,\"commentCount\":9,\"image\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/wp-content\\\/uploads\\\/\\\\L2015\\\/\\\\L08\\\/\\\\Luntitled.jpg\",\"articleSection\":[\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/\",\"name\":\"\\\"Attempt to read or write protected memory\\\" error from SSMS for System.Data - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/wp-content\\\/uploads\\\/\\\\L2015\\\/\\\\L08\\\/\\\\Luntitled.jpg\",\"datePublished\":\"2015-08-28T11:19:33+00:00\",\"dateModified\":\"2026-06-30T11:24:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/#\\\/schema\\\/person\\\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/wp-content\\\/uploads\\\/\\\\L2015\\\/\\\\L08\\\/\\\\Luntitled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/wp-content\\\/uploads\\\/\\\\L2015\\\/\\\\L08\\\/\\\\Luntitled.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;Attempt to read or write protected memory&#8221; error from SSMS for System.Data\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/#website\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/#\\\/schema\\\/person\\\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\\\/\\\/3.209.169.194\\\/blogs\\\/paul\"],\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/paul\\\/author\\\/paul\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"Attempt to read or write protected memory\" error from SSMS for System.Data - Paul S. Randal","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.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/","og_locale":"en_US","og_type":"article","og_title":"\"Attempt to read or write protected memory\" error from SSMS for System.Data - Paul S. Randal","og_description":"I just spent a couple of hours fruitlessly trying to solve a problem and thought I&#8217;d blog the solution in case anyone else hits the issue. A few months back I got a new laptop and installed SQL Server 2014 on it and everything worked fine. A few weeks ago I installed SQL Server 2008 [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/","og_site_name":"Paul S. Randal","article_published_time":"2015-08-28T11:19:33+00:00","article_modified_time":"2026-06-30T11:24:34+00:00","og_image":[{"width":618,"height":171,"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/2015\/08\/Untitled.jpg","type":"image\/jpeg"}],"author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#article","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/"},"author":{"name":"Paul Randal","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"headline":"&#8220;Attempt to read or write protected memory&#8221; error from SSMS for System.Data","datePublished":"2015-08-28T11:19:33+00:00","dateModified":"2026-06-30T11:24:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/"},"wordCount":269,"commentCount":9,"image":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/\\L2015\/\\L08\/\\Luntitled.jpg","articleSection":["Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/","name":"\"Attempt to read or write protected memory\" error from SSMS for System.Data - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#primaryimage"},"image":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/\\L2015\/\\L08\/\\Luntitled.jpg","datePublished":"2015-08-28T11:19:33+00:00","dateModified":"2026-06-30T11:24:34+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#primaryimage","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/\\L2015\/\\L08\/\\Luntitled.jpg","contentUrl":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-content\/uploads\/\\L2015\/\\L08\/\\Luntitled.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/attempt-to-read-or-write-protected-memory-error-from-ssms-for-system-data\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"&#8220;Attempt to read or write protected memory&#8221; error from SSMS for System.Data"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/4545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=4545"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/4545\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=4545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=4545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=4545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}