Experience of converting ACCESS to SQL SERVER

Source: Internet
Author: User
Tags datetime access database

1. When the automatic numbering type in the ACCESS database is converted, SQL server does not set it to the automatic numbering type,
2. For date-related fields during conversion, SQL SERVER is of the smalldatetime type by default. We 'd better change it
Datetime type, because the range of datetime type is larger than that of smalldatetime type. In this case, use
If the smalldatetime type is used, the conversion fails. If The datetime type is used, the conversion is successful.
3. The SQL statements used to operate these two databases are not all the same, for example, deleting a record for an ACCESS database
Use: "delete * from user where id = 10", and use: "delete
4. date functions are different. In the ACCESS database processing, functions such as date () and time () can be used,
In SQL SERVER database processing, only functions such as datediff and dateadd can be used, instead of date () and time ().
5. For ACCESS database processing, some VB functions can be used in SQL statements, such as the cstr () function.
SQL SERVER databases are being processed, but cannot be used.

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.