开发者

How to batch import files into the database?

I have 20 files that I want to put in separ开发者_运维问答ate tables. All the tables have the same schema though. I was wondering if there is a good way to do this besides using SQL Server Import/Export Wizard (which I believe is targeted towards single file imports).

Any suggestions?


Yes, your best bet and definitely the easiest way would be using BULK INSERT.

See here for more information and implementation: http://msdn.microsoft.com/en-us/library/ms188365.aspx


The bcp utility is probably the easiest way to import those files

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜