模仿 .NET 中的 MS Access 或 SQL Server ODBC 服务器
我们希望通过伪装成 ODBC 服务器(例如 Access 或 SQL Server)来允许访问我们的自定义后端数据存储。通过这种方式,任何拥有这些 ODBC 驱动程序的人都可以连接并向我们发送查询(从 asp.net 到 Excel 的任何内容),我们将在后端解析这些查询并返回结果集。
我有能力解析 SQL 并基于动态 SQL 查询返回结果集。我不知道如何伪装成 ODBC 或 OLEDB 服务器。我什至不关心我们模仿哪台服务器,只要它是具有 Windows 附带的驱动程序的常见服务器即可。
我已经搜索过,但找不到实现身份验证和 ExecuteQuery() 方法的基本实现。这样的.net项目存在吗?
We want to allow access to our custom back end data store by pretending to be an ODBC server such as Access or SQL Server. In this way, anyone with those ODBC drivers could connect and send us queries (from anything from asp.net to Excel) which we will resolve on the back end and return a result set.
I have the ability to parse SQL and return result set based on a dynamic sql query. What I don't know is how to pretend to be an ODBC or OLEDB server. I don't even care which server we mimic as long as it's a common one that has drivers that ship with windows.
I have searched but could not find a basic implementation that implements authentication and ExecuteQuery() methods. Does such a .net project exist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以实现 ADO.NET 数据提供程序吗?
请参阅 http://msdn.microsoft.com/en-us/library/a6cd7c08。 ASPX
You could implement an ADO.NET data provider?
see http://msdn.microsoft.com/en-us/library/a6cd7c08.aspx
System.Data.Sqlite 项目是一个很好的示例,说明如何为任意数据构建 ADO.NET 数据提供程序。数据存储。
The System.Data.Sqlite project is an excellent example of how to build an ADO.NET data provider for an arbitrary data store.