当前位置:网站首页>Import and export data of SQL Server database
Import and export data of SQL Server database
2022-08-02 12:19:00 【m0_67401228】
Import and export data
- 1. Overview
- 2. Import SQL Server data table
- 3. Import data from other data sources
- 4. Export SQL Server Data Table
1. Overview
Importing data is also a frequently used feature in database operations. The SQL Server database import and export wizards can copy data to a hosted **.ENT Framework** data provider or native OLE DB> Access any data source of the interface, and can copy data from these data sources;
A list of the interfaces that the user can access, the data sources include SQL Server, Flat File, Microsoft Office Access, Microsoft Office Excel;
To succeedTo complete the SQL Server Import and Export Wizard, you must have at least the following permissions:
- Permissions to connect to the source and target databases or file shares in Integration Services and require Login permissions for both server and database;
- Permission to read the database from the source database or file, in SQL Server databases this requires SELECT permission on the source tables and views;
- Permission to write data to the target database or file. In the SQL Server database, INSERT permission is required for the target table;
- If you wish to create a new target database, table, or file, you need sufficient permissions to create a new database, table, or file; in a SQL Server database, you need CREATE DATABASE or >CREATE TABLE permission;
- To save the wizard-created package, you need sufficient permissions to write to the msdbsystem or filesystem;
2. Import SQL Server data table
The Import and Export Service of the SQL Server database can realize data conversion of different types of database systems. In order to allow users to use the import and export service more intuitively, Micosoft provides an import and export service.Export Wizard;
The Import and Export Wizard provides an easy way to copy data from source to target, convert data between many common data formats, and create target databases and insert tables;
users canCopy data to and from these sources: SQL Server, text files, Access, Excel, other OLE DB providers; these data sources are both sources and targets, you can also use the ADO.NET access interface as the source; after specifying the source and target, you can select the data to import or export, and the user can set different wizard options according to the source and target type;
ImportThe specific steps for the SQL Server database are as follows:
- Select the database, right-click Database → Import Data → SQL Server Import and Export Interface → Next;

- Select Data Source dialog box, select data source, server name, database → Next;

Note: The server name is the local server name, i.e. 
- Select target, next;

- Specify table replication or query, select the data source to be replicated, specify table replication or query, next step;

10. Select the table to be imported, you can also preview the data table, save and run the package, and finally click Finish;

3. Import data from other data sources
Importing data from other data sources is similar to the above importing data table operations. Select a different data source in the step of selecting Data source, such as importing Access data, just select ""Microsoft Access”, other data sources can also be selected in the data source drop-down list;
Note: When importing Excel data, be careful to select the correct version of Excel;
4. Export SQL Server data table
Export data and import data types of SQL Server datasets;
The specific steps for importing SQL Server databases are as follows:
Right click on the database to be exported → Export data;

Select target, enter server name, database, next;

Specify table copy or query, next step;
, Select source table and source view, select the data table to be exported, next step;

Save and run the package, next step, done;


Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢

基于深度学习的裂缝检测技术

NVIDIA NeMo Metrics 轻量性能采集系统

simulink PID自动整定

手撸架构,Mysql 面试126问

Free Chinese-English Translation Software - Automatic Batch Chinese-English Translation Software Recommended Daquan

使用mosquitto过程中的问题解决

np.nan, np.isnan, None, pd.isnull, pd.isna finishing and summary

CCF paper conference IEEE how to query all articles of a conference journal

力扣35-搜索插入位置——二分查找

Technology sharing | Description of the electronic fence function in the integrated dispatching system
随机推荐
CCF论文会议 IEEE 如何查询某个会议期刊的所有文章
免费的中英文翻译软件-自动批量中英文翻译软件推荐大全
解决anaconda下载pytorch速度极慢的方法
干测试这些年,去过阿里也去过小公司,给年轻测试员们一个忠告...
Transfer files between servers
数据湖(一):数据湖概念
匹配滤波(四种滤波器的幅频特性)
NVIDIA NeMo Metrics 轻量性能采集系统
力扣704-二分查找
阿苹的思考
An example of type3 voltage loop compensator taking Boost as an example
翻译英语的软件-免费翻译软件-各种语言互相翻译
JVM学习----垃圾回收调优
Swift中什么时候不能用 () 代替 Void 来使用
WPF——自定义日历
如何通过DBeaver 连接 TDengine?
Idea 全局搜索(idea如何全局搜索关键字)
如何更好评估信用贷风险?看这场评分卡模型直播就可以了
力扣209-长度最小的字符串——滑动窗口法
Crack detection technology based on deep learning