将 Excel/XLS 导入 SSIS?
提示、技巧、陷阱和请最佳实践:
换句话说
例如,
请使用此连接
不要使用此数据类型
对 X 进行排序
不要通过网络打开
当 Q 可能时 Z 会被损坏
不要使用“,”而使用“|”作为分隔符
不要使用通过采样 n 行来确定列数据类型的“向导” 不要使用多张纸
(上面的列表并不是一个指南,只是我想到的随机的东西!)
Tips, Tricks, Pitfalls & Best Practice please:
in other words
e.g.
Do use this connection
Don't use this datatype
Do sort X
Don't open over network
Z gets corrupted when Q is likely
Don't use "," use "|" as separator
Don't use 'wizard' that determines column datatype by sampling n rows
Don't use multiple sheet
(the above list is not meant to be a guide, just me thinking of random stuff!)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
codeplex 上有一些 Excel 连接管理器。在64位服务器上运行需要使用32位DTEXEC。看起来他们有一个 64 位提供商,但它是从 CozyRoc 出售的。还有 Excel2 管理器,它看起来是免费的。
There are some Excel connection managers on codeplex. Running on a 64 server needs to use the 32 bit DTEXEC. Looks like they have a 64 bit provider, but it's for sale from CozyRoc. There is the Excel2 manager also, which looks free.
您对列数据类型和行采样问题的看法是正确的。
有时,将 Excel 文件保存为 CSV 并导入会更容易。
You are right about column datatypes and problems with row samplings.
Sometimes it's easier to save the Excel file to CSV and import that.