使用相同的名称和密码,并发连接到SQL Server。有没有一些什么问题? [英] Simultaneous connections to SQL Server using the same name and password. Is there any problem with that?

查看:106
本文介绍了使用相同的名称和密码,并发连接到SQL Server。有没有一些什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

// MS SQL Server 2008中。

// MS SQL Server 2008.

我的应用程序有几个不同的连接到SQL Server数据库(C#,ADO .NET)。每个连接使用相同的用户名和密码。一些连接可能会同时执行。

My application has several different connections to sql server database (C#, ADO .NET). Each connection uses the same user name and password. Some connections may execute simultaneously.

有没有一些什么问题?我应该添加一些设置来支持该功能?

Is there any problem with that ? Should I add some settings to support that functionality ?

有没有在连接字符串中的任何设置,允许/限制并发连接?有没有在SQL Server中的任何设置,允许/限制功能?

Is there any settings in connection string that allow/restrict simultaneous connections ? Is there any settings in SQL Server that allow/restrict that functionality ?

推荐答案

没有,这是正常的。使用完全相同的连接字符串也有助于池的连接(在后台的连接到数据库保持开放和再利用,而不是完全关闭和打开它们)。

No this is normal. Using the exact same connection string also helps with pooling the connections (In the background your connections to the DB are kept open and reused rather than completely closing and opening them).

这篇关于使用相同的名称和密码,并发连接到SQL Server。有没有一些什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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