连接到另一个系统中的mdf文件 [英] connecting to mdf file which is in another system

查看:86
本文介绍了连接到另一个系统中的mdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个学校管理项目,其中的安装程序安装在两个系统中...

一个安装程序将具有MDF文件(数据库),而另一台计算机中的安装程序没有MDF文件,则还应该能够访问第一个系统的同一MDF文件.... .


在这里,我要使用一个通用的数据库.

I am having a school management project where the setup is installed in two systems...

One setup will have a MDF File(Database) and the setup which is in another computer does not have MDF File, should also be able to access the same MDF File of first system.... Can you please help me how to do it.


Here the thing is i want to use a common Database.

推荐答案

您可以共享包含MDF的相应文件夹,然后将其作为磁盘驱动器连接到其中.没有的PC.然后,它可以直接访问文件,就好像它是其自己的硬盘驱动器的一部分一样.

但是,如果一次只有一个用户要使用该文件,则这只是(几乎)可以接受的解决方案-在任何情况下,形状,形式都不适合多用户访问.

如果您需要多用户,我强烈建议您在一台PC上安装SQL Server(Express版本从Microsoft免费提供),并使用它从两台PC上访问您的数据库.
You can just share out the appropriate folder which contains the MDF and connect to it as a disk drive in the PC which doesn''t. It can then access the file directly as if it was part of it''s own hard-drive.

However, this is only a (vaguely) acceptable solution if only one user is going to use the file at a time - Access is not good at multiuser in any way, shape or form.

If you need multiuser, I would strongly suggest that you install SQL Server (the Express edition is free from Microsoft) on one PC and use it to access your database from both.


这篇关于连接到另一个系统中的mdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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