{"id":1278,"date":"2012-03-23T12:17:26","date_gmt":"2012-03-23T12:17:26","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=1278"},"modified":"2012-03-23T12:17:46","modified_gmt":"2012-03-23T12:17:46","slug":"problem-with-identity-specification-in-sql","status":"publish","type":"post","link":"https:\/\/galhano.com\/blog\/?p=1278","title":{"rendered":"Problem with Identity Specification in SQL&#8230;"},"content":{"rendered":"<p>Error message when changing the identity column to &#8220;Yes&#8221; and save the changes:<\/p>\n<p><span style=\"color: #3366ff;\">&#8220;Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table to be re-created.&#8221;<\/span><\/p>\n<p>It&#8217;s not a bug. It&#8217;s a safety measure added to SQL 2008&#8217;s management studio to indicate that the change that you&#8217;ve requested to the table requires that the table be dropped and recreated.<\/p>\n<p>It&#8217;s there so that people don&#8217;t &#8216;accidentally&#8217; make changes in production that will take hours.<\/p>\n<p>use &#8220;SET IDENTITY_INSERT&#8221; command, for more info, see SQL BOL.<\/p>\n<p>Or turn off the warning under tools&#8211;&gt;options&#8211;&gt;designers&#8211;&gt;table and database designers<\/p>\n<div>\n<p>uncheck prevent saving changes that require table re-creation<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Error message when changing the identity column to &#8220;Yes&#8221; and save the changes: &#8220;Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can&#8217;t be re-created or enabled the option Prevent saving changes that require the table [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,9],"tags":[79],"class_list":["post-1278","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-sql-server","tag-sqlserver","author-admin"],"_links":{"self":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1278"}],"version-history":[{"count":3,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1278\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1278\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}