在网络上共享mdf文件 [英] Sharing mdf file on a network

查看:139
本文介绍了在网络上共享mdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想基于共享使用我的SQL Server数据库应用程序.我只是从添加新项"中添加了一个mdf,制成了表格,然后使用数据集将其与我的应用程序连接.
我没有网络要测试.我想知道此应用程序是否可以在网络上正常工作(我将只共享包含我的应用程序文件和mdf文件的文件夹,并在网络计算机上建立到应用程序exe的快捷方式.我将此方法用于Access数据库,它可以正常工作.它也适用于mdf吗?

另外,我是否还需要在客户端计算机上安装SQL Server,或者足以在包含数据库的主计算机上安装SQL Server?

谢谢

Hi,
I want to use my SQL Server Database application on sharing basis. I just added an mdf from Add New Item, made table and then connected with my application using datasets.
I donot have network to test. I want to know if this application will work fine on a network (I will just share the folder containing my application files and mdf file and make a shortcut to application exe on network computer. I use this method for Access database and it works fine. Will it work for mdf also?

Also, do I need to install SQL server on client computers too or it is enough to install on main computer containing database?

Thanks

推荐答案

这将有效...
但这不是正确的样式....
您应该使数据库居中,并在应用程序中传递连接字符串,
并在所有客户端上安装此应用程序.
This will work .....
but this not correct style ....
you should make centered database and pass connection string in application ,
and install this application on all client side .


这篇关于在网络上共享mdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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