常春岛资源网 Design By www.syssdc.com
select *
from openrowset('Microsoft.Jet.OLEDB.4.0'
,'Excel 8.0;HDR=YES;IMEX=1;DATABASE=d:\folder\excel.xls',Sheet1$)
-------NOTE------
Setting IMEX=1 tells the driver to use Import mode. In this state, the registry setting ImportMixedTypes=Text will be noticed. This forces mixed data to be converted to text. For this to work reliably, you may also have to modify the registry setting, TypeGuessRows=8. The ISAM driver by default looks at the first eight rows and from that sampling determines the datatype. If this eight row sampling is all numeric, then setting IMEX=1 will not convert the default datatype to Text; it will remain numeric.
You must be careful that IMEX=1 not be used indiscriminately. This is IMPORT mode, so the results may be unpredictable if you try to do appends or updates of data in this mode.
The possible settings of IMEX are:
0 is Export mode
1 is Import mode
2 is Linked mode (full update capabilities)
from openrowset('Microsoft.Jet.OLEDB.4.0'
,'Excel 8.0;HDR=YES;IMEX=1;DATABASE=d:\folder\excel.xls',Sheet1$)
-------NOTE------
Setting IMEX=1 tells the driver to use Import mode. In this state, the registry setting ImportMixedTypes=Text will be noticed. This forces mixed data to be converted to text. For this to work reliably, you may also have to modify the registry setting, TypeGuessRows=8. The ISAM driver by default looks at the first eight rows and from that sampling determines the datatype. If this eight row sampling is all numeric, then setting IMEX=1 will not convert the default datatype to Text; it will remain numeric.
You must be careful that IMEX=1 not be used indiscriminately. This is IMPORT mode, so the results may be unpredictable if you try to do appends or updates of data in this mode.
The possible settings of IMEX are:
0 is Export mode
1 is Import mode
2 is Linked mode (full update capabilities)
常春岛资源网 Design By www.syssdc.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
常春岛资源网 Design By www.syssdc.com
暂无评论...
更新日志
2024年05月08日
2024年05月08日
- 《范马刃牙 VS 拳愿阿修罗》公开正式预告与主视觉图
- 【乡村蓝调(P】RichardLindgren-2024-GrandJubilee(FLAC)
- 【乡村摇滚】DanielCrabtree-2024-StormsontheOcean(FLAC)
- 【乡村摇滚(J)】DollyParton-2024-Rockstar(Deluxe)(FLAC)
- 《地狱潜者2》事件引网友感叹:永远不要低估PC社区
- 连裤袜忠实爱好者 日本大号樱花妹肉感美腿吸睛
- 《Dota2》屠夫为路人局最受欢迎英雄 登场数超10亿
- 古云有螭任务攻略,古云有螭岩尊像在哪?
- 重云角色攻略心得分享,重云角色技能天赋
- 原神cos:白丝+玉足,刻晴小护士太撩人了!雷电将军、刻晴顶级魅魔合集!
- 蜜雪薇琪.2007-想见你新歌+精选2CD【SONYBMG】【WAV+CUE】
- 胡彦斌.2009-红歌(EP)【金牌大风】【WAV+CUE】
- 蔡国权.1987-梦的预言(复黑王)【宝丽金】【WAV+CUE】
- 群星《试音天碟HIFI极品女声》[WAV+CUE][1.1G]
- 徐小凤《金曲精选》[APE+CUE][320M]