Tips for using. ADP files

Source: Internet
Author: User

Use Case :

originally: there are two access , A1 wrote the Program , all data linktable from A2 (A2 only used as a database ) .

now you want: A1 temporarily retained (the program is too complex ), set A2 Replace with sqlserver2005 .

problems and skills :

1:AccessImport dataSqlserver2005. Whether data types can be smoothly mapped; whether primary keys, auto-incrementing columns, and so on are correctly set.

2 : A1 Medium Linktable To Sqlserver Then, whether the program is normal. Because Access And Sqlserver The syntax is slightly different, such as a query statement of the date type.

 

Steps:

Pilot import data

1 : create a new access database.

2 : select the menu: file \ New \ select Project (existing data)

3:Datalink propertesInsideConnectionTab

SelectSQLServer:. \ Sqlexpress

SelectSQLDatabase Name

4: At this timeProjectProject, you can manageSqlserverDatabase.

The data table added here will be created directlySqlserver.

5: File\ Get external data \ Import

 SelectAccessFile(. Mdb)

Select the data table to import.

Note:: The data types have been converted during the import.

 

Below isLinktableToSQL ServerUpper

6: In the targetAccessProgram, file\ Get external data \ linktable

SelectODBCData Source

(If you want to create ODBC Data source, Control Panel \ Management tools \ ODBC Data Source \ Add one Sqlserver )

Select thisSQL Server, Select a table,Linktable

Note: : SQL The statement must be in Access . ( Access And SQL )

 

Conclusion: Normal

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.