Home > Database > Mysql Tutorial > 文件文件导入到mssql数据库方法

文件文件导入到mssql数据库方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:48:50
Original
948 people have browsed it

分享一篇关于文件文件导入到mssql数据库方法,有需要的朋友可以参考一下。

我使用SQL的Bulk insert :

 代码如下 复制代码

BULK INSERT CSDN FROM 'D:XX.txt'
WITH (
CODEPAGE='ANSI ',
DATAFILETYPE='char',
FIELDTERMINATOR=','  --如果文本用,号来分割字段内容的
)

 

我的电脑:Lenovo B470,SQL Server 2000,测试导入500W,用了不到4分钟。

 

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template