且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用c#从没有SQL Server的.mdf和.ldf文件访问数据

更新时间:2023-02-04 15:15:31

简单易行:你不能。

SQL Server数据库文件具有专有权和封闭格式。

顺便说一下:你也无法直接读/写mdb-s。您正在使用的驱动程序是Microsoft Access的核心,您调用Access的应用程序只是一个GUI和围绕它的工具集。
Simple and easy: you can not.
SQL Server database files have proprietary and closed format.
By the way: you are not able to read/write directly mdb-s either. The driver you are using is the core of Microsoft Access, tho application you call Access is only a GUI and a tool set around it.