Table of Contents
将ACCESS数据库迁移到SQLSERVER数据库
Home Database Mysql Tutorial 将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

Jun 07, 2016 pm 03:45 PM
access sqlserver database

将ACCESS数据库迁移到SQLSERVER数据库 ACCESS2000文件 用ACCESS2007打开,并迁移到SQLSERVER2005里 打开ACCESS2007的数据库工具 方法一 :使用ACCESS2007自带的数据库迁移工具 1、打开ACCESS2007的数据库迁移向导 2、点击SQLSERVER按钮,弹出升迁向导对话框

将ACCESS数据库迁移到SQLSERVER数据库

ACCESS2000文件

用ACCESS2007打开,并迁移到SQLSERVER2005里 

打开ACCESS2007的数据库工具

方法一:使用ACCESS2007自带的数据库迁移工具

1、打开ACCESS2007的数据库迁移向导

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

2、点击SQLSERVER按钮,弹出升迁向导对话框

将ACCESS数据库迁移到SQLSERVER数据库

3、选择新建数据库

将ACCESS数据库迁移到SQLSERVER数据库

4、输入计算机名,我的本地计算机名字叫joe,因为SQLSERVER安装在本地,所以选择使用可信连接就可以了

数据库名称默认就可以了

将ACCESS数据库迁移到SQLSERVER数据库

5、选择所有表,移动到右边框

将ACCESS数据库迁移到SQLSERVER数据库

 

6、把表索引也一起升迁到SQLSERVER里

将ACCESS数据库迁移到SQLSERVER数据库

7、由于没有应用程序,这一步可以直接跳过

将ACCESS数据库迁移到SQLSERVER数据库

8、点击完成按钮开始迁移数据库到SQLSERVER

将ACCESS数据库迁移到SQLSERVER数据库

9、开始迁移

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库


10、刷新一下SQLSERVER2005里的对象资源管理器里的数据库

迁移到SQLSERVER之后,SQLSERVER会自动在ACCESS数据库的名称后加SQL这三个字母

将ACCESS数据库迁移到SQLSERVER数据库

11、打开LygSQL中的某个数据表,看是否迁移成功

将ACCESS数据库迁移到SQLSERVER数据库

12、表约束也完整迁移成功

将ACCESS数据库迁移到SQLSERVER数据库


方法二:使用SQLSERVER2005自带的数据导入导出向导

限制:SQLSERVER2005自带的数据导入导出向导工具只支持ACCESS2003或以下文件

1、在SQLSERVER里新建一个与ACCESS数据库同名的数据库Lygl

将ACCESS数据库迁移到SQLSERVER数据库

2、选中Lygl数据库,然后按右键—》任务-》导入数据

将ACCESS数据库迁移到SQLSERVER数据库

3、打开SQLSERVER导入导出向导

将ACCESS数据库迁移到SQLSERVER数据库

 

4、下一步

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

提示:如果ACCESS数据库有密码的话,点击下一步会出错,所以在点击下一步之前请先去除ACCESS数据库的密码!

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

5、点击下一步

将ACCESS数据库迁移到SQLSERVER数据库

6、再点击下一步

将ACCESS数据库迁移到SQLSERVER数据库

7、再点击下一步

勾选第一个方框就可以了,SQLSERVER会自动帮你勾选ACCESS数据库中的所有表格

将ACCESS数据库迁移到SQLSERVER数据库

8、点击下一步

将ACCESS数据库迁移到SQLSERVER数据库

9、最后点击完成按钮

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

10、刷新一下SQLSERVER对象资源管理器里的数据库

将ACCESS数据库迁移到SQLSERVER数据库

11、打开表

将ACCESS数据库迁移到SQLSERVER数据库

数据都导入进来了

但是表约束没有导入进来,这个比ACCESS自带的数据库迁移向导差了一点

将ACCESS数据库迁移到SQLSERVER数据库

 


方法三:使用SSMA for ACCESS 5.2

使用SSMA for ACCESS 5.2迁移到SQLSERVER2012

SQL Server Migration Assistant简介(一)

SQL Server Migration Assistant简介(二)

注意:如果要将ACCESS2010的数据库迁移到SQLSERVER,必须在电脑上安装ACCESS2010

就是说:迁移哪个版本的ACCESS数据库就需要在电脑上安装相应版本的ACCESS数据库

1、安装

实际上SSMA支持多种数据库类型,大家在下面的链接下载就可以了

http://files.cnblogs.com/lyhabc/SSMAforMySQL5.2.zip
http://files.cnblogs.com/lyhabc/SSMAforAccess5.2.zip
http://files.cnblogs.com/lyhabc/SSMAforOracle5.2.zip
http://files.cnblogs.com/lyhabc/SSMAforSybase5.2.zip
http://files.cnblogs.com/lyhabc/access-ssma.rar

access-ssma.license是证书文件,在双击SSMA for Access 5.2.exe进行安装

将ACCESS数据库迁移到SQLSERVER数据库

一路next就可以了,中间如果有什么回滚操作,你点击yes就可以了,就算回滚了,也不影响安装的

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

双击打开

将ACCESS数据库迁移到SQLSERVER数据库

如果没有申请证书,需要点击license registration page ,打开网页输入一些邮箱之类的信息就可以了,这个是完全免费的

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

如果已经下载了证书了,则直接选择刚才的access-ssma.license文件,这个文件是证书文件所在的文件夹就可以了

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

 将ACCESS数据库迁移到SQLSERVER数据库

一开始使用的时候,软件会自动弹出向导,并且新建一个project,如果你不需要,点击“close”按钮就可以了

2、设置

将ACCESS数据库迁移到SQLSERVER数据库

其实这些设置选择默认值就可以了

Global Settings

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

 

 

Default Project Settings

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

其实上面的设置我都是用的默认的,并没有更改

3、界面

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

 

3、创建项目project并开始迁移数据

 将ACCESS数据库迁移到SQLSERVER数据库

数据库选择SQLSERVER2012,这个工具还支持迁移到SQL AZURE

将ACCESS数据库迁移到SQLSERVER数据库

点击OK

将ACCESS数据库迁移到SQLSERVER数据库

在ACCESS窗口会出现ACCESS-METADATA树节点

将ACCESS数据库迁移到SQLSERVER数据库

在新建文件夹下面也会产生一些文件

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

4、添加数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

打开之后会看到下面的样子

将ACCESS数据库迁移到SQLSERVER数据库

 

迁移前,可以像文章说的那样SQL Server Migration Assistant简介(一),创建一个迁移评估报告

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

评估报告是一个html文件,他会评估出迁移大概需要多少时间,如果有不能迁移的数据,他会发出错误

将ACCESS数据库迁移到SQLSERVER数据库

在软件的下方的输出窗口里也会有评估转换的输出信息

将ACCESS数据库迁移到SQLSERVER数据库

5、连接到SQLSERVER2012

最好不要预先在SQLSERVER2012里面创建好要迁移的数据库,让SSMA FOR ACCESS去创建就好了

在Database那一栏,输入你想在SQLSERVER中创建的数据库,当你点击connect的时候,软件会自动帮你创建好数据库的

将ACCESS数据库迁移到SQLSERVER数据库

点击“Yes”

将ACCESS数据库迁移到SQLSERVER数据库

 在SQLSERVER窗口就会看到新建的数据库Course

将ACCESS数据库迁移到SQLSERVER数据库

同时在SSMS里也能看到新的数据库Course

将ACCESS数据库迁移到SQLSERVER数据库

6、架构转换

在ACCESS窗口,选中Course数据库,在转换过程,会在表里添加一个SSMA_TimeStamp列,主键也会重新命名

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

7、与ACCESS进行同步

在SQLSERVER窗口,选中Course数据库,右键-》同步

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

这个时候,在SSMS里面就能够看到表,主键,索引已经生成好了,就差导数据了

软件会在表中生成SSMA_TimeStamp列,也会修改主键的名字为Course_baseinfo$PrimaryKey

将ACCESS数据库迁移到SQLSERVER数据库

索引的扩展属性

将ACCESS数据库迁移到SQLSERVER数据库

7、导数据

在ACCESS窗口,选中Course数据库,右键-》Migrate Data

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

我们在SSMS里查看,数据都导过来了

将ACCESS数据库迁移到SQLSERVER数据库

8、如果你嫌转换、同步、导数据麻烦的话,界面中还有一个按钮,点击一下,就能够把上面的1、转换 2、同步 3、导数据 一起完成

 将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库

将ACCESS数据库迁移到SQLSERVER数据库


迁移的过程就是这样了

 

如有不对的地方,欢迎大家拍砖o(∩_∩)o

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1659
14
PHP Tutorial
1258
29
C# Tutorial
1232
24
How to configure zend for apache How to configure zend for apache Apr 13, 2025 pm 12:57 PM

How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

MySQL vs. Other Databases: Comparing the Options MySQL vs. Other Databases: Comparing the Options Apr 15, 2025 am 12:08 AM

MySQL is suitable for web applications and content management systems and is popular for its open source, high performance and ease of use. 1) Compared with PostgreSQL, MySQL performs better in simple queries and high concurrent read operations. 2) Compared with Oracle, MySQL is more popular among small and medium-sized enterprises because of its open source and low cost. 3) Compared with Microsoft SQL Server, MySQL is more suitable for cross-platform applications. 4) Unlike MongoDB, MySQL is more suitable for structured data and transaction processing.

Using Dicr/Yii2-Google to integrate Google API in YII2 Using Dicr/Yii2-Google to integrate Google API in YII2 Apr 18, 2025 am 11:54 AM

VprocesserazrabotkiveB-enclosed, Мнепришлостольностьсясзадачейтерациигооглапидляпапакробоглесхетсigootrive. LEAVALLYSUMBALLANCEFRIABLANCEFAUMDOPTOMATIFICATION, ČtookazaLovnetakProsto, Kakaožidal.Posenesko

MySQL: Structured Data and Relational Databases MySQL: Structured Data and Relational Databases Apr 18, 2025 am 12:22 AM

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

How to identify malicious access in Debian Apache logs How to identify malicious access in Debian Apache logs Apr 13, 2025 am 07:30 AM

Effective monitoring and defense against malicious website access is crucial to the Apache server on the Debian system. Apache access logs are the key source of information to identify such threats. This article will guide you on how to analyze logs and take defensive measures. The Apache access log that identifies malicious access behaviors Debian systems is usually located in /var/log/apache2/access.log. You can analyze the logs in a variety of ways: Log file location confirmation: First, please confirm the exact location of your Apache access log, which may vary slightly depending on the system configuration. Command line tool analysis: Use grep command to search for specific patterns, such as grep "404"

What is apache server? What is apache server for? What is apache server? What is apache server for? Apr 13, 2025 am 11:57 AM

Apache server is a powerful web server software that acts as a bridge between browsers and website servers. 1. It handles HTTP requests and returns web page content based on requests; 2. Modular design allows extended functions, such as support for SSL encryption and dynamic web pages; 3. Configuration files (such as virtual host configurations) need to be carefully set to avoid security vulnerabilities, and optimize performance parameters, such as thread count and timeout time, in order to build high-performance and secure web applications.

Nginx performance monitoring and troubleshooting tools Nginx performance monitoring and troubleshooting tools Apr 13, 2025 pm 10:00 PM

Nginx performance monitoring and troubleshooting are mainly carried out through the following steps: 1. Use nginx-V to view version information, and enable the stub_status module to monitor the number of active connections, requests and cache hit rate; 2. Use top command to monitor system resource occupation, iostat and vmstat monitor disk I/O and memory usage respectively; 3. Use tcpdump to capture packets to analyze network traffic and troubleshoot network connection problems; 4. Properly configure the number of worker processes to avoid insufficient concurrent processing capabilities or excessive process context switching overhead; 5. Correctly configure Nginx cache to avoid improper cache size settings; 6. By analyzing Nginx logs, such as using awk and grep commands or ELK

See all articles