Example of automatic value-added setting ID in SQLServer2000/2005

Source: Internet
Author: User

In SQL2000, we set automatic value-added. We select yes in the ID, and then set the seed and ID increment of the following id. The seed is the starting number of the ID, the increment is the number added each time. As shown in the following figure:

SQL2000 identification method

But there are not so many in SQL2005. The setting method is different. As shown in the following figure, the column attribute does not have any options for setting Identifiers. Only the table attribute on the right has an identifiers. If you set the ID to auto-increment, write the ID in the ID column or select from the drop-down list. But in 2005, there is no seed and ID increment for the logo. Here, it is automatically set to 1. You only need to select the ID column.

Add ID auto-increment method in sql2005

But there are not so many in SQL2005. The setting method is different. As shown in the following figure, the column attribute does not have any options for setting Identifiers. Only the table attribute on the right has an identifiers. If you set the ID to auto-increment, write the ID in the ID column or select from the drop-down list. But in 2005, there is no seed and ID increment for the logo. Here, it is automatically set to 1. You only need to select the ID column.

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.