简体   繁体   English

如何在不访问ODBC驱动程序的情况下上传excel文件

[英]How to upload excel file without access ODBC driver

I am using access ODBC driver "provider=Microsoft.ACE.OLEDB.12.0;"我正在使用访问 ODBC 驱动程序“provider=Microsoft.ACE.OLEDB.12.0;” in my ASP.NET Web application.在我的 ASP.NET Web 应用程序中。 But I don't want to install the driver on each machine to use my Web App.但是我不想在每台机器上安装驱动程序来使用我的 Web App。 Please suggest something to do to avoid installing the driver.请提出建议以避免安装驱动程序。

There seems to be some kind of misconceptions here.这里似乎存在某种误解。

The WHOLE idea of a web server?网络服务器的整体理念? Well, you setup and install the required software and drivers and systems and software on the web server.好吧,您在 Web 服务器上设置并安装了所需的软件和驱动程序以及系统和软件。 Once done, then anything from a iPad to a smartphone to a computer ONLY requires a web browser.完成后,从 iPad 到智能手机再到计算机,任何东西都只需要一个网络浏览器。 So client side software is simply a browser.所以客户端软件只是一个浏览器。 Is that not why we like and use web applications?这不正是我们喜欢和使用 Web 应用程序的原因吗?

However, if you going to use say SQL server on the web site?但是,如果您要在网站上使用说 SQL 服务器? Then yes, you have to setup + install the appropriate SQL server drivers on that site.那么是的,您必须在该站点上设置并安装适当的 SQL 服务器驱动程序。

And if you going to use MySQl on that web site?如果您打算在该网站上使用 MySQl? Then yes, you have to setup + install the appropriate MySQL server drivers on that server hosting the web site.那么是的,您必须在托管网站的服务器上设置并安装适当的 MySQL 服务器驱动程序。

And lo and behold?你瞧? If you going to use Excel, or MS Access on that web site?如果您打算在该网站上使用 Excel 或 MS Access? Take a wild guess here?在这里大胆猜测一下? Then once again you have to setup + install the MS-access drivers on that web site.然后,您必须再次在该网站上设置 + 安装 MS-access 驱动程序。

So it not clear really what you are asking here?所以不清楚你在这里问什么?

But to answer your question?但是要回答你的问题?

If you going to use some kind of database on your server hosting the web site?如果您打算在托管网站的服务器上使用某种数据库? Well then you have to ensure that the correct drivers are installed.那么你必须确保安装了正确的驱动程序。 How this works for MS-access, Oracle, MySQL, SQL server or any database is the SAME.这对于 MS-access、Oracle、MySQL、SQL 服务器或任何数据库的工作原理是相同的。

You simple have to ensure that such database systems and drivers are available on that server hosting the web site.您只需确保在托管网站的服务器上可以使用此类数据库系统和驱动程序。

And if you looking to have this application work on other servers and web sites?如果您希望在其他服务器和网站上使用此应用程序? Then of course once again, be it Oracle, MySQL, MS-access or any other database system?那么当然再一次,是 Oracle、MySQL、MS-access 还是任何其他数据库系统? Then you have to ensure the correct database drivers are setup and installed on that web server.然后,您必须确保在该 Web 服务器上设置并安装了正确的数据库驱动程序。 How this works for ANY database system you plan to use is the same.这对于您计划使用的任何数据库系统的工作方式都是相同的。 MS-Access is not any kind of special exception here at all. MS-Access 在这里根本不是任何特殊的例外。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以通过Windows 10(64位)计算机上的odbc驱动程序访问没有Microsoft Access应用程序的Microsoft Access文件? - Can I access to Microsoft Access file without Microsoft Access application through odbc driver on Windows 10(64bit) machine? 如何使用 odbc 驱动程序连接 Ms access 2010 (.accdb) 数据库 - How to connect Ms access 2010 (.accdb ) database with odbc driver 如何在没有oledb的情况下将Excel文件数据上传到SQL Server - How to upload an Excel file data into SQL Server without oledb ODBC驱动程序无法读取Excel中添加的行 - ODBC driver cannot read rows added in Excel 如何使用驱动程序对提取和存储ODBC - How to extract and store ODBC with driver pairs 来自 Access ODBC 驱动程序的无效日期时间格式异常 - Invalid datetime format exception from Access ODBC Driver 如何使用 Selenium Web 驱动程序上传文件/句柄窗口 - How to upload file/ handle window using Selenium web driver 如何将文件在线上传到文件夹而不会出现“对路径的访问被拒绝” - How Do I Upload a File To a Folder Online Without Getting "Access to the path is denied" 如何上传Excel文件并添加列到数据库? - how to upload excel file and add columns into database? 验证Excel文件上传 - validating excel file upload
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM