Eight steps to resolve access AutoNumber problems (Convert SQL SERVER 2000 databases to access databases) _access

Source: Internet
Author: User

The first step: Open your "Start menu", open "program"-SQL Server Enterprise Mananger "Enterprise Manager"
In the SQL database you want to export, right-click menu: All Tasks-"Export data"

Step Two: An Export wizard window will appear.
Select the exported data source, for the database you have just chosen, if found does not correspond to its own modification.

Step three: Go to the choice of exporting to the target data source, where we'll go to the database for access. Note Selecting the data source type is Microsoft Access. Click the button behind the filename (F) to select the target. MDB file.

Step Fourth: Select Copy tables and views from database.

Fifth step: We note that there is a "conversion" column on the right side of the table selection. SQL export converts only data types regardless of other scripts so the AutoNumber problem we're encountering is here. There is a certain point of automatic numbering select "Convert".

Sixth step: We see a Column Mapping and Transformation dialog box back. Noticed that the self increasing of the EmployeeID int has become a long in access. This is definitely not true, long is not automatic numbering, had to modify the build table script, the picture on the Red circle button "edit SQL."

Open a small window create Talbe

The script in the red circle is the EmployeeID Access table script, preceded by "not NULL" with "IDENTITY (1, 1)".

Step seventh: Execute now.

The following figure indicates that the table replication was successful

Eighth Step: We open the MDB file to see if we like it?

OK, congratulations on your successful operation.

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.