After you modify the data type of a field in a table in a SQL Server database, you cannot save

Source: Internet
Author: User
Built a table in the database , but because of the SQL Server table function is not familiar with, do not know what to set the primary key to what is good, first set a text type, but later friends told me that the text type easy to make the data file becomes very large, but also It's better to change to an int type. You are about to modify the field type. But always prompt not to let me change, that means you can only rebuild the table. Access can let casually modify the type, why SQL Server does not, do not believe this evil, or to ask the professional test SQL Server personnel, asked for a long time no response, it seems to have to go to Baidu, this search is very smooth, directly found a contented answer.

This is the default setting for SQL Server itself, which defaults to a type that cannot be modified. All you need to do is "Tool->option->designer
Table and Database designers remove prvent saving changes that require table re-created. " Yes, it did, and it worked.

After you modify the data type of a field in a table in a SQL Server database, you cannot save

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.