如何从共享文件夹午餐数据库应用程序? [英] How to lunch Database Application from shared folder ?

查看:84
本文介绍了如何从共享文件夹午餐数据库应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好喔:)



我用数据库构建ac#应用程序(sql express 2008 R2)

当我吃午饭时从共享文件夹它不起作用!!

连接字符串包含(Application.StartupPath)。



有什么问题以及如何我可以从共享文件夹午餐数据库应用程序吗?



并非常感谢帮助我:)

解决方案

喔。好吧,那不行。您无法从映射的共享将数据库附加到SQL Server(任何版本)。好吧,有可能使用UNC路径(如这个 [ ^ ]或 this [ ^ ]),但你不应该,因为我觉得背后有更多问题。



如果你把它放在一个共享上,我想你希望从多个客户端运行该应用程序。好吧,那也行不通。它不是Access。



如果您需要共享数据库访问权限,则必须将其安装为常规服务器并通过本机客户端访问数据库。这就是它是服务器的原因。


如果你只想要一个应用程序实例的数据存储,请使用SQL CE - 并制作数据库的本地副本因为这两者都不提供对文件的共享访问。


hi everybody :)

I've build a c# application with database(sql express 2008 R2)
when i lunch it from shared folder it didn't work !!
the connection string contains (Application.StartupPath).

what is the wrong and how do i can lunch database application from shared folder ??

and thanks a lot for helping me :)

解决方案

Oh. Well, that won't work. You can not attach databases to SQL Server (any edition) from a mapped share. Well, there are possibilities using UNC path (like this[^] or this[^]), but you should not, since I feel more problems behind.

If you have put this on a share, I suppose you want the application to be run from multiple clients. Well, that won't work either. It is not Access.

If you need shared access to the database, you have to install it as regular server and give access to the database over native client. This is why it is a server.

If you want simply a data store for the application instances, use SQL CE instead - and make a local copy of the database and work on that since neither this provides shared access to the file.


这篇关于如何从共享文件夹午餐数据库应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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