什么是IMEX的OLEDB连接字符串中? [英] What is IMEX in the OLEDB connection string?

查看:189
本文介绍了什么是IMEX的OLEDB连接字符串中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=localhost;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=2"

喜。什么是IMEX的目的是什么?

Hi. What is the purpose of IMEX ?

推荐答案

从的的ConnectionStrings

如果你想读列标题到结果集(使用HDR = NO即使有一个头)和列数据是数字,使用IMEX = 1,以避免崩溃。

"If you want to read the column headers into the result set (using HDR=NO even though there is a header) and the column data is numeric, use IMEX=1 to avoid crash.

要始终使用IMEX = 1检索混合数据列的数据更安全的方式..

To always use IMEX=1 is a safer way to retrieve data for mixed data columns. .."

请注意,当您需要回写数据到Excel中IMEX值可以是非常重要的。
对IMEX互联网的快速搜索发现,许多文章关于各种IMEX值

Please note that the IMEX value can be very important when you need to write back data to the Excel. A fast search on Internet on IMEX found numerous articles about problems with various IMEX values

这篇关于什么是IMEX的OLEDB连接字符串中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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