Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7721407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:55:01+00:00 2026-06-01T03:55:01+00:00

I created a table tbl_Candidate , but I forgot to set the primary key

  • 0

I created a table tbl_Candidate, but I forgot to set the primary key to the table and I saved it without primary key.

Next time I’m going to set primary key in SQL Server 2008 Express, I get a message like I have to drop the table and recreate when I’m going to save the table with primary key changes.

This is the message that pops up when I’m trying to save changes in the table:

Saving changes is not permitted. The changes you have made require
that the following tables to dropped and recreate. You have either made
changes to the table that can’t be recreate or enable the option
prevent saving changes that require the tables to be recreate

I’m logged into SQL Server with Windows authentication, server type as database engine and Server name as .\SQLExpress.

Please give me a way to correct this problem or way to change the settings of the SQL Server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:55:02+00:00Added an answer on June 1, 2026 at 3:55 am

    The answer is on the MSDN site:

    The Save (Not Permitted) dialog box warns you that saving changes is
    not permitted because the changes you have made require the listed
    tables to be dropped and re-created.

    The following actions might require a table to be re-created:

    • Adding a new column to the middle of the table
    • Dropping a column
    • Changing column nullability
    • Changing the order of the columns
    • Changing the data type of a column

    EDIT 1:

    Additional useful informations from here:

    To change the Prevent saving changes that require the table
    re-creation option, follow these steps:

    1. Open SQL Server Management Studio (SSMS).
    2. On the Tools menu, click Options.
    3. In the navigation pane of the Options window, click Designers.
    4. Select or clear the Prevent saving changes that require the table re-creation check box, and then click OK.

    Note If you disable this option, you are not warned when you save the table that the changes that you made have changed the metadata
    structure of the table. In this case, data loss may occur when you
    save the table.

    Risk of turning off the “Prevent saving changes that require table re-creation” option

    Although turning off this option can help you avoid re-creating a
    table, it can also lead to changes being lost. For example, suppose
    that you enable the Change Tracking feature in SQL Server 2008 to
    track changes to the table. When you perform an operation that causes
    the table to be re-created, you receive the error message that is
    mentioned in the “Symptoms” section. However, if you turn off this
    option, the existing change tracking information is deleted when the
    table is re-created. Therefore, we recommend that you do not work
    around this problem by turning off the option.

    Settings, screen shot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

for instance: a table created as below: create table tbl_text( id integer primary key,
I've a table created like: CREATE TABLE tbl_test ( id bigserial PRIMARY KEY, interest
Given an Oracle table created using the following: CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME
I've created a table in Microsoft Sql CE that I'm using to hold some
I am using C#.Net and Sql Server ( Windows Application ). I had created
I have the following tables created: Table #1: tbl_Connections USE [taaraf_db] GO SET ANSI_NULLS
I created a trigger for a table (Person) so that each time a new
I have a dynamically created table which in the last <td> there is a
I have created a table in my application, I want to select (change background
I have created one table using the below command: create table Table1( Id int

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.