简体   繁体   English

SharedDrive上的SQL Server 2008 R2 Db

[英]SQL Server 2008 R2 Db on SharedDrive

I have SQL Server 2008 R2 installed on my local machine. 我在本地计算机上安装了SQL Server 2008 R2。 Is it possible to create a database on a shared drive (network drive) so that all my teammates should be able to read data from the SQL Server database? 是否可以在共享驱动器(网络驱动器)上创建数据库,以便我的所有队友都能够从SQL Server数据库读取数据?

When I try to create a new database, it shows only my C: drive and not the network drive. 当我尝试创建新数据库时,它仅显示我的C:驱动器,而不显示网络驱动器。

Any help is appreciated. 任何帮助表示赞赏。

Thanks 谢谢

SQL Server takes out exclusive locks on the database files, thus you wouldn't be able to "share" it in real time with other teammates if they are trying to mount the database as well. SQL Server删除数据库文件的排他锁,因此,如果其他队友也尝试安装数据库,则您将无法与其他队友实时“共享”它。

What you need to do is setup an environment for SQL Server and give your teammates access to connect to that instance of SQL Server. 您需要做的是为SQL Server设置一个环境,并为您的队友提供访问权限以连接到该SQL Server实例。 Do not attempt to use multiple instances of SQL Server with a single database (unless it is copied from a gold database build to each client). 不要尝试对单个数据库使用多个SQL Server实例(除非将其从黄金数据库版本复制到每个客户端)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM