具有3层数据库访问权限的SQL Server 2017 Express问题。 [英] SQL Server 2017 Express Issue with 3 Tier database access.

查看:98
本文介绍了具有3层数据库访问权限的SQL Server 2017 Express问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临SQL Server 2017 Express的问题。

Hi, I am facing an issue with SQL Server 2017 Express.

我的客户端在PC1上,SQL Server配置在PC2上,数据库在PC3上。我可以通过PC1上的客户端成功连接到PC2上的SQL服务器,但如果我尝试使用PC1上的客户端访问PC 3上的数据库,我会收到以下错误...

My client is on PC1, SQL server is configured on PC2 and the database is on PC3. I could successfully connect to SQL server on PC2 through client on PC1, but if I try to access the database on PC 3 using client on PC1, I get following error...

" Msg 5120,Level 16,State 101,Line 2

"Msg 5120, Level 16, State 101, Line 2

无法打开物理文件"\\MD1Z549C.ad001.siemens.net \Database_DT\Products\ProductDB.mdf"。操作系统错误5:"5(访问被拒绝。)"。

Unable to open the physical file "\\MD1Z549C.ad001.siemens.net\Database_DT\Products\ProductDB.mdf". Operating system error 5: "5(Access is denied.)".

消息1802,级别16,状态7,行2

Msg 1802, Level 16, State 7, Line 2

CREATE DATABASE失败。无法创建列出的某些文件名。检查相关错误。"

CREATE DATABASE failed. Some file names listed could not be created. Check related errors."

当我在PC2上访问数据库时,没有问题。或者,如果我使用PC1中的其他SQL服务器,那么我也可以在PC3上访问数据库数据库。 (这里没有使用中间PC2)

When i access the database on PC2 there is no Issue. or if i use other SQL server from PC1 then I could access database database on PC3 as well. (here no intermediate PC2 is used)

问题是我有客户端,SQL Server和数据库的时候在3台不同的机器上。 (它给出了上面的错误消息)

So issue is when I have Client, SQL Server and Database on 3 different machines. (it gives above errro message)

过去适用于SQL Server 2008 R2 Express的相同场景。

The same scenario used to work well with SQL server 2008 R2 Express.

SQL Server 2017完整版和SQL Server 2019也可以重现同样的问题。

The same issue is reproducible with SQL server 2017 full version and SQL server 2019.

所有三台PC,共享驱动器和SQL服务器都配置得很好,过去常用于SQL Server 2008 R2 express。

All the three PCs, shared drives and SQL server are configured well, which used to work with SQL server 2008 R2 express.

最新版本的SQL Server是否有任何限制或限制? 或者我需要尝试使场景在三台不同的机器上运行。 

Is there any limitation or restriction introduced with the latest version of SQL server ?  OR anything I need to try out to make the scenario work on three different machine. 

谢谢提前很多。

问候,

Anil

推荐答案


无法使用打开物理文件" \\MD1Z549C.ad001.siemens.net \Database_DT\Products\ProductDB.mdf"。操作系统错误5:"5(访问被拒绝。)"。

Unable to open the physical file "\\MD1Z549C.ad001.siemens.net\Database_DT\Products\ProductDB.mdf". Operating system error 5: "5(Access is denied.)".




不支持在NAS共享上托管数据库文件,并且错误消息5 =访问被拒绝是明确的,在Windows操作系统文件系统上缺少权限。


It's not supported to host database files on a NAS share and the error message 5 = Access denied is clear, missing permissions on Windows OS file System.


这篇关于具有3层数据库访问权限的SQL Server 2017 Express问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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