Manually convert ACCESS to SQLSERVER

Source: Internet
Author: User
Tags access database security mdb database
Before introducing the tutorial, let's first get to know the Access and SQLSERVER databases. Microsoft softofficeaccess is an associated database management system released by Microsoft. It integrates the features of MicrosoftJetDatabaseEngine and graphical user interface, and is a system of MicrosoftOffice.

Before introducing the tutorial, let's take a look at the Access and SQL SERVER databases. Microsoft Office Access overview Microsoft Office Access is an associated database management system released by Microsoft. It integrates Microsoft Jet Database Engine and graphical user interface, and is a Microsoft Office System.

Before introducing the tutorial, let's take a look at the Access and SQL SERVER databases.

Microsoft Office Access

Microsoft Office Access is a relational database management system released by Microsoft. It combines Microsoft Jet Database Engine and graphical user interface, and is one of the Microsoft Office System programs.

Microsoft Office Access Vulnerability

1. When the database is too large, the performance of the ACCESS database usually drops when it reaches about MB! (For example, if too many users are accessed, IIS may be suspended and excessive server resources will be consumed)

2. It is prone to various database problems caused by the high frequency of database flushing.

3. ACCESS database security is inferior to other types of databases.

4. When the ACCESS forum is large, it is easy to have database problems. When the Forum database is more than 50 MB, about 50 thousand posts, and about 100 online users, your forum basically takes time to process the database. At this time, the database may be slow.

The general symptom is that all pages involving databases are surprisingly slow to run suddenly (the execution time reaches 5 seconds or even dozens of seconds), and pages involving HTML and pure ASP operations are normal, wait for a while (about 10 minutes or longer) and then suddenly recover (My Forum sometimes has this problem ). At this time, you can test it with a general ASP probe. If the server's computing time is normal, it is generally a database problem.

Introduction to MS SQL SERVER

SQL is the abbreviation of Structured Query Language. It refers to the Structured Query Language. The main function of SQL is to establish contact and communicate with various databases. According to ANSI (American National Standards Association), SQL is used as the standard language for relational database management systems. SQL statements can be used to perform various operations, such as updating data in the database and extracting data from the database. Currently, most popular relational database management systems, such as Oracle, Sybase, Microsoft SQL Server, and Access, use SQL language standards.

SQL Server is a relational database management system. It was initially developed by Microsoft, Sybase, and Ashton-Tate, and launched the first OS/2 version in 1988. After the launch of Windows NT, Microsoft and Sybase were separated in the Development of SQL Server. Microsoft transplanted SQL Server to Windows NT, focus on developing and promoting the Windows NT version of SQL Server. Sybase is more focused on SQL Server applications on the operating system UN IX.

Summary: for large databases, SQL SERVER is superior to ACCESS. Some websites may use ACCESS databases for various reasons at the initial stage. However, as the website continues to develop, the ACCESS database obviously cannot meet the requirements. How can I convert the ACCESS database to SQL SERVER? Please read the following Tutorial:

1. You must first install Microsoft Office Access 2003 and SQL Server.

2. Back up the old database. After the backup is complete, use Access 2003 to open the MDB database. A warning will appear when it is turned on. Ignore it (Security Warning) and press the open key, go to the toolbar, choose database utility> convert database to 2002-2003 format, and convert the database to 2003 format.

3. After the conversion is complete, use Access 2003 to open the switch, go to the toolbar, choose database utility> --> sqlsqlsql> enter the SQL database logon name, password, and the database to be created (to be converted to a new database), and click Next, press the "" key, then press next, select all options, then press next, select "do not make any changes to the application", and then press finish.

4. Open SQL Enterprise Manager-database-select the corresponding database-right-click all tasks-generate SQL scripts-General-all display-write all object scripts-OK (remember the storage location ).

5. Use notepad to open the generated SQL script. In the editing bar -- replace -- Replace "datetime" with "smalldatetime" -- replace all; then, in the editing bar -- replace the content with "nvarchar" and "varchar" -- replace all, save and exit.

6. Open SQL Enterprise Manager-database-click the database to create a new database, then, in the toolbar -- SQL query analyzer -- file -- open -- "generated SQL script" -- Query -- run, and close the window.

7. Return to SQL Enterprise Manager-database-click the database to create a new database, then open the toolbar -- database conversion service -- import data -- next -- Data Source "Microsoft Access" file name "Old Database" -- next -- Copy table and view from source data -- next -- select All -- next -- run now -- next -- complete.

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.