{"id":200761,"date":"2024-02-29T17:56:32","date_gmt":"2024-02-29T17:56:32","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/"},"modified":"2024-02-29T17:56:32","modified_gmt":"2024-02-29T17:56:32","slug":"how-to-change-identity-column-value-in-sql-server","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/","title":{"rendered":"How to change identity column value in SQL Server?"},"content":{"rendered":"<p><b>There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity property on the column, updating the value, and then enabling the identity property once again. Follow the steps below to change the identity column value:<\/b><\/p>\n<p>1. **Disable the Identity Property**<br \/>\n   &#8211; Use the following command to disable the identity property on the column:<br \/>\n     &#8220;`sql<br \/>\n     SET IDENTITY_INSERT [table_name] ON;<br \/>\n     &#8220;`<br \/>\n   &#8211; Replace `[table_name]` with the actual name of the table containing the identity column.<\/p>\n<p>2. **Update the Value**<br \/>\n   &#8211; Update the value of the identity column using a SQL UPDATE statement:<br \/>\n     &#8220;`sql<br \/>\n     UPDATE [table_name] SET [identity_column_name] = [new_value] WHERE [condition];<br \/>\n     &#8220;`<br \/>\n   &#8211; Replace `[table_name]`, `[identity_column_name]`, `[new_value]`, and `[condition]` with the appropriate values.<\/p>\n<p>3. **Enable the Identity Property**<br \/>\n   &#8211; After updating the value, enable the identity property on the column again:<br \/>\n     &#8220;`sql<br \/>\n     SET IDENTITY_INSERT [table_name] OFF;<br \/>\n     &#8220;`<\/p>\n<p>4. **Verify the Changes**<br \/>\n   &#8211; Make sure to verify that the identity column value has been successfully updated by running a SELECT query:<br \/>\n     &#8220;`sql<br \/>\n     SELECT * FROM [table_name];<br \/>\n     &#8220;`<\/p>\n<p>Changing the value of an identity column should be done carefully as it can affect the integrity of the data in the table. Always make sure to back up your data before making any changes.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#FAQs_on_Changing_Identity_Column_Value_in_SQL_Server\" title=\"FAQs on Changing Identity Column Value in SQL Server\">FAQs on Changing Identity Column Value in SQL Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Can_the_identity_property_be_changed_on_an_existing_column_in_SQL_Server\" title=\"Can the identity property be changed on an existing column in SQL Server?\">Can the identity property be changed on an existing column in SQL Server?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#What_happens_if_I_try_to_update_the_value_of_an_identity_column_without_disabling_the_identity_property\" title=\"What happens if I try to update the value of an identity column without disabling the identity property?\">What happens if I try to update the value of an identity column without disabling the identity property?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Is_it_possible_to_reset_the_identity_column_value_to_a_specific_number_in_SQL_Server\" title=\"Is it possible to reset the identity column value to a specific number in SQL Server?\">Is it possible to reset the identity column value to a specific number in SQL Server?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Can_the_identity_column_value_be_changed_to_a_non-numeric_value_in_SQL_Server\" title=\"Can the identity column value be changed to a non-numeric value in SQL Server?\">Can the identity column value be changed to a non-numeric value in SQL Server?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#What_precautions_should_be_taken_while_changing_the_identity_column_value_in_SQL_Server\" title=\"What precautions should be taken while changing the identity column value in SQL Server?\">What precautions should be taken while changing the identity column value in SQL Server?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Can_the_identity_column_value_be_changed_in_a_table_that_has_foreign_key_constraints\" title=\"Can the identity column value be changed in a table that has foreign key constraints?\">Can the identity column value be changed in a table that has foreign key constraints?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#What_happens_if_I_try_to_change_the_value_of_an_identity_column_to_a_value_that_already_exists_in_the_table\" title=\"What happens if I try to change the value of an identity column to a value that already exists in the table?\">What happens if I try to change the value of an identity column to a value that already exists in the table?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Is_there_any_other_way_to_change_the_identity_column_value_in_SQL_Server_without_disabling_the_identity_property\" title=\"Is there any other way to change the identity column value in SQL Server without disabling the identity property?\">Is there any other way to change the identity column value in SQL Server without disabling the identity property?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Can_the_identity_column_value_be_changed_for_multiple_rows_in_a_single_query\" title=\"Can the identity column value be changed for multiple rows in a single query?\">Can the identity column value be changed for multiple rows in a single query?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#Is_it_possible_to_change_the_identity_column_value_in_a_replicated_table\" title=\"Is it possible to change the identity column value in a replicated table?\">Is it possible to change the identity column value in a replicated table?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#What_is_the_significance_of_the_SET_IDENTITY_INSERT_command_in_changing_the_identity_column_value\" title=\"What is the significance of the SET IDENTITY_INSERT command in changing the identity column value?\">What is the significance of the SET IDENTITY_INSERT command in changing the identity column value?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#What_steps_should_be_taken_if_the_identity_column_value_needs_to_be_changed_frequently\" title=\"What steps should be taken if the identity column value needs to be changed frequently?\">What steps should be taken if the identity column value needs to be changed frequently?<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"FAQs_on_Changing_Identity_Column_Value_in_SQL_Server\"><\/span>FAQs on Changing Identity Column Value in SQL Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"Can_the_identity_property_be_changed_on_an_existing_column_in_SQL_Server\"><\/span>Can the identity property be changed on an existing column in SQL Server?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, the identity property can be turned off and on for an existing column in SQL Server. <\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_happens_if_I_try_to_update_the_value_of_an_identity_column_without_disabling_the_identity_property\"><\/span>What happens if I try to update the value of an identity column without disabling the identity property?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf you try to update the value of an identity column without disabling the identity property, you will receive an error stating that identity_insert is set to OFF.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_it_possible_to_reset_the_identity_column_value_to_a_specific_number_in_SQL_Server\"><\/span>Is it possible to reset the identity column value to a specific number in SQL Server?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can reset the identity column value to a specific number by following the steps mentioned above, but remember that it may affect the integrity of the data.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_the_identity_column_value_be_changed_to_a_non-numeric_value_in_SQL_Server\"><\/span>Can the identity column value be changed to a non-numeric value in SQL Server?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, the identity column value cannot be changed to a non-numeric value as it is set to automatically increment according to the data type specified.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_precautions_should_be_taken_while_changing_the_identity_column_value_in_SQL_Server\"><\/span>What precautions should be taken while changing the identity column value in SQL Server?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIt is important to back up your data before making any changes to the identity column value to prevent data loss or corruption.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_the_identity_column_value_be_changed_in_a_table_that_has_foreign_key_constraints\"><\/span>Can the identity column value be changed in a table that has foreign key constraints?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can change the identity column value in a table that has foreign key constraints, but you need to be cautious to avoid breaking referential integrity.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_happens_if_I_try_to_change_the_value_of_an_identity_column_to_a_value_that_already_exists_in_the_table\"><\/span>What happens if I try to change the value of an identity column to a value that already exists in the table?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf you try to change the value of an identity column to a value that already exists in the table, you will receive a primary key violation error.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_there_any_other_way_to_change_the_identity_column_value_in_SQL_Server_without_disabling_the_identity_property\"><\/span>Is there any other way to change the identity column value in SQL Server without disabling the identity property?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, the recommended method to change the identity column value in SQL Server is by disabling the identity property, updating the value, and then enabling the identity property again.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_the_identity_column_value_be_changed_for_multiple_rows_in_a_single_query\"><\/span>Can the identity column value be changed for multiple rows in a single query?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can update the identity column value for multiple rows in a single query by specifying the appropriate condition in the UPDATE statement.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_it_possible_to_change_the_identity_column_value_in_a_replicated_table\"><\/span>Is it possible to change the identity column value in a replicated table?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can change the identity column value in a replicated table, but you need to consider the impact on the replication process.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_the_significance_of_the_SET_IDENTITY_INSERT_command_in_changing_the_identity_column_value\"><\/span>What is the significance of the SET IDENTITY_INSERT command in changing the identity column value?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nThe SET IDENTITY_INSERT command allows you to insert explicit values into an identity column, which is necessary when updating the identity column value in SQL Server.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_steps_should_be_taken_if_the_identity_column_value_needs_to_be_changed_frequently\"><\/span>What steps should be taken if the identity column value needs to be changed frequently?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf the identity column value needs to be changed frequently, consider using a different approach such as using a non-identity column with a unique constraint to achieve the desired result without affecting data integrity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity property on the column, updating the value, and then enabling the identity property once again. Follow the steps below to change the identity column value: 1. **Disable the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to change identity column value in SQL Server?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#more-200761\">Read more<span class=\"screen-reader-text\">How to change identity column value in SQL Server?<\/span><\/a><\/p>\n","protected":false},"author":51,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-200761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to change identity column value in SQL Server?<\/title>\n<meta name=\"description\" content=\"There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-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 change identity column value in SQL Server?\" \/>\n<meta property=\"og:description\" content=\"There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-29T17:56:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"164\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Adam Forbes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adam Forbes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/\"},\"author\":{\"name\":\"Adam Forbes\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/88cd882dfb29a6b147bc0ea26dc84060\"},\"headline\":\"How to change identity column value in SQL Server?\",\"datePublished\":\"2024-02-29T17:56:32+00:00\",\"dateModified\":\"2024-02-29T17:56:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/\"},\"wordCount\":742,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/\",\"name\":\"How to change identity column value in SQL Server?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-02-29T17:56:32+00:00\",\"dateModified\":\"2024-02-29T17:56:32+00:00\",\"description\":\"There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change identity column value in SQL Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/88cd882dfb29a6b147bc0ea26dc84060\",\"name\":\"Adam Forbes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Adam Forbes\"},\"description\":\"Guest author Adam Forbes has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change identity column value in SQL Server?","description":"There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity","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:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"How to change identity column value in SQL Server?","og_description":"There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity","og_url":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-02-29T17:56:32+00:00","og_image":[{"width":500,"height":164,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","type":"image\/png"}],"author":"Adam Forbes","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Adam Forbes","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/"},"author":{"name":"Adam Forbes","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/88cd882dfb29a6b147bc0ea26dc84060"},"headline":"How to change identity column value in SQL Server?","datePublished":"2024-02-29T17:56:32+00:00","dateModified":"2024-02-29T17:56:32+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/"},"wordCount":742,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/","url":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/","name":"How to change identity column value in SQL Server?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-02-29T17:56:32+00:00","dateModified":"2024-02-29T17:56:32+00:00","description":"There are times when you may need to change the value of an identity column in SQL Server. This can be achieved by temporarily disabling the identity","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-change-identity-column-value-in-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to change identity column value in SQL Server?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/88cd882dfb29a6b147bc0ea26dc84060","name":"Adam Forbes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Adam Forbes"},"description":"Guest author Adam Forbes has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/200761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=200761"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/200761\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=200761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=200761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=200761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}