Click here to Skip to main content
15,887,435 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to show SSRS report in asp.net from report server Pin
Dave Kreskowiak19-Sep-16 2:28
mveDave Kreskowiak19-Sep-16 2:28 
GeneralRe: How to show SSRS report in asp.net from report server Pin
Pete O'Hanlon19-Sep-16 4:20
mvePete O'Hanlon19-Sep-16 4:20 
GeneralRe: How to show SSRS report in asp.net from report server Pin
Dave Kreskowiak19-Sep-16 5:47
mveDave Kreskowiak19-Sep-16 5:47 
GeneralRe: How to show SSRS report in asp.net from report server Pin
Richard MacCutchan19-Sep-16 6:40
mveRichard MacCutchan19-Sep-16 6:40 
AnswerRe: How to show SSRS report in asp.net from report server Pin
Gerry Schmitz19-Sep-16 7:01
mveGerry Schmitz19-Sep-16 7:01 
GeneralRe: How to show SSRS report in asp.net from report server Pin
Tridip Bhattacharjee19-Sep-16 21:35
professionalTridip Bhattacharjee19-Sep-16 21:35 
QuestionPrevent Multiple Same User Logins On A Desktop Application C# Pin
Zeyad Jalil18-Sep-16 2:26
professionalZeyad Jalil18-Sep-16 2:26 
AnswerRe: Prevent Multiple Same User Logins On A Desktop Application C# Pin
Wendelius18-Sep-16 3:41
mentorWendelius18-Sep-16 3:41 
One way to do this is to query if there already is a session for that specific user in the system. You can get the information from sys.dm_exec_sessions[^]

Since not every user is allowed to query that view, it's best if you do the check inside a stored procedure upon connecting to the database. If the connection is already found (or actually if there now is two connections) then raise an error from the procedure to inform client application that new connection isn't allowed. Another option is to use Logon Triggers[^]

Depending on the requirements, you can check if the host is different if you need to allow multiple connections from the same host

modified 18-Sep-16 10:31am.

GeneralRe: Prevent Multiple Same User Logins On A Desktop Application C# Pin
Zeyad Jalil18-Sep-16 19:31
professionalZeyad Jalil18-Sep-16 19:31 
GeneralRe: Prevent Multiple Same User Logins On A Desktop Application C# Pin
Wendelius18-Sep-16 21:38
mentorWendelius18-Sep-16 21:38 
GeneralRe: Prevent Multiple Same User Logins On A Desktop Application C# Pin
Wendelius13-Oct-16 11:04
mentorWendelius13-Oct-16 11:04 
QuestionBar Code Generate Pin
Member 1116631816-Sep-16 21:55
professionalMember 1116631816-Sep-16 21:55 
AnswerRe: Bar Code Generate Pin
Gerry Schmitz17-Sep-16 6:27
mveGerry Schmitz17-Sep-16 6:27 
SuggestionRe: Bar Code Generate Pin
Richard Deeming19-Sep-16 2:05
mveRichard Deeming19-Sep-16 2:05 
QuestionWinForms bind Combobox to DataSet Table Names Pin
hpjchobbes16-Sep-16 10:13
hpjchobbes16-Sep-16 10:13 
AnswerRe: WinForms bind Combobox to DataSet Table Names Pin
Gerry Schmitz17-Sep-16 6:46
mveGerry Schmitz17-Sep-16 6:46 
QuestionHow to draw an image using form controls? Pin
Le@rner15-Sep-16 21:52
Le@rner15-Sep-16 21:52 
AnswerRe: How to draw an image using form controls? Pin
OriginalGriff15-Sep-16 22:00
mveOriginalGriff15-Sep-16 22:00 
GeneralRe: How to draw an image using form controls? Pin
Le@rner15-Sep-16 23:54
Le@rner15-Sep-16 23:54 
GeneralRe: How to draw an image using form controls? Pin
OriginalGriff16-Sep-16 0:07
mveOriginalGriff16-Sep-16 0:07 
GeneralRe: How to draw an image using form controls? Pin
Le@rner16-Sep-16 0:09
Le@rner16-Sep-16 0:09 
GeneralRe: How to draw an image using form controls? Pin
OriginalGriff16-Sep-16 0:19
mveOriginalGriff16-Sep-16 0:19 
GeneralRe: How to draw an image using form controls? Pin
Le@rner16-Sep-16 19:40
Le@rner16-Sep-16 19:40 
GeneralRe: How to draw an image using form controls? Pin
OriginalGriff16-Sep-16 21:27
mveOriginalGriff16-Sep-16 21:27 
GeneralRe: How to draw an image using form controls? Pin
Le@rner16-Sep-16 0:09
Le@rner16-Sep-16 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.