在网络驱动器上同时使用LocalDB [英] Concurrent use of LocalDB on a network drive(s)

查看:99
本文介绍了在网络驱动器上同时使用LocalDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的配置如下:

具有Z:的服务器映射到d:\ something

Server with Z: mapped to d:\something

带有Z的客户端:映射到\\ server \ 位于Z的LocalDB MDF(和整个应用程序):

Client with Z: mapped to \\server\ A LocalDB MDF (and the whole application) located at Z:

任何一台计算机都可以,但是不能同时工作.我有一个例外的说法 System.Data.SqlClient.SqlException 0x80131904无法打开登录请求的数据库z:\ xxx \ xxx.mdf.登录失败.

Either computer alone is OK, but doesn't work simultaneously. I get an exception saying System.Data.SqlClient.SqlException 0x80131904 Cannot open database z:\xxx\xxx.mdf requested by the login. the login failed.

推荐答案

此操作无法完成. SQL要求,而不是附加到数据库的物理文件应该由引擎专门打开.

This cannot be done. SQL requires than physical file attached to the database should be opened exclusively by the engine.

通过安装支持远程连接的SQLEXPRESS解决.

Solved by installing SQLEXPRESS which supports remote connections.

这篇关于在网络驱动器上同时使用LocalDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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