什么是将数据从文件传输到数据库表的最佳优化方法? [英] What are best optimization methods for transfering data from files to database table

查看:106
本文介绍了什么是将数据从文件传输到数据库表的最佳优化方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有一个应用程序,它将记录从文件插入数据库表中.数据大小约为50到60 GB(大小可能有所不同),所以当我将记录从文件传输到数据库表时,需要5到6天的时间进行处理数据.我正在尝试优化此过程.

优化将大量数据传输到数据库表的过程的最佳方法是什么.

我正在使用vs2010和sql server2008.

Hello,
I have an application which will insert records from files to database tables.The data size is around 50 to 60 gb(size may vary) ,so when i am transfering this records from files to database tables it will take 5 to 6 days for processing data.I am trying to optimize this process.

What are the best method to optimize this process of transfering large amount of data into databse tables.

I am using vs2010 and sql server 2008.

推荐答案

使用BULK INSERT参见此处的示例:http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file [^ ]
Use BULK INSERT see here for an example : http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file[^]


检查这些

用于将数据导入SQL Server的不同选项 [ ^ ]
BCP和;批量插入– Microsoft SQL Server未被充分了解的功能 [导入和导出批量数据 [
Check these

Different Options for Importing Data into SQL Server[^]
BCP & Bulk Inserts – Under-appreciated features of Microsoft SQL Server[^]
Importing and Exporting Bulk Data[^]


这篇关于什么是将数据从文件传输到数据库表的最佳优化方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆