Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 2 connections

Author  Topic 

basicconfiguration
Constraint Violating Yak Guru

358 Posts

Posted - 2012-05-08 : 16:52:24
I CREATED A LOGIN TO HAVE READ ONLY PERMISSION, i WANT TO limit this login to have only 2 connections to the database from the same concurrent server.


ServerA = 2 connections
ServerB = 2 connections

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-05-08 : 17:20:43
What version of SQL Server are you using?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

basicconfiguration
Constraint Violating Yak Guru

358 Posts

Posted - 2012-05-08 : 17:40:40
sql server 2008r2
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-05-08 : 17:45:03
You'll need to use a logon trigger for that. You can modify the example listed here:

http://msdn.microsoft.com/en-us/library/bb326598.aspx
Go to Top of Page
   

- Advertisement -