如何使用c#从没有SQL Server的.mdf和.ldf文件访问数据 [英] how to access data from .mdf and .ldf files without SQL Server using c#

查看:323
本文介绍了如何使用c#从没有SQL Server的.mdf和.ldf文件访问数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从MS Access File访问数据。喜欢如何使用c#从没有SQL Server的.mdf和.ldf文件访问数据?我们可以将.mdf和.ldf放到计算机中的任何文件夹中,并且能够访问来自那些文件?

I am able access data from MS Access File.Like How to access data from .mdf and .ldf files without SQL Server using c#?We can put .mdf and .ldf to any folder in Computer and able to access data from that files?

推荐答案

简单易行:你不能。

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.


这篇关于如何使用c#从没有SQL Server的.mdf和.ldf文件访问数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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