Why is my OLE data source data not querying consistently?

I have a Microsoft Excel 2003 file that I am querying from C# 2.0 using an OleDbConnection. One of the cells in the Excel file is formated as a short date and displays in Excel as "1/1/2009". If I change the format to General the text displayed in that cell changes to "39814". If I query the Excel file while the file is open, I receive "39814" in the result set. If I query the Excel file while the file is closed, I receive "1/1/2009" in the result set. Why the inconsistency with importing data from this Ole Data Source? Thank you, Keith
Interesting, I may try to duplicate this if I have time this morning.

以上就是Why is my OLE data source data not querying consistently?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » excel

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏