What is the differences between Connection and
Sessions in SQL-Server?
select a.spid , a.nt_username , a.loginame , a.program_name from sys.sysprocesses a , sys.dm_exec_connections b where a.spid=b.session_id
A SESSION is a
semi-permanent interactive information interchange, between two or more
communicating devices or between an application and users.
We must open a connection in order to create a session. Normally there
is one session on each connection, but there could be multiple session on a
single connection.
eg. If we connect to sql server using management studio
then its one connection. once we connected we can open 3 query windows then these are 3
sessions.
Microsoft SQL-Server has two DMVs to maintain Sessions and Connections :-
1.
Sys.dm_exec_sessions
2.
sys.dm_exec_connections
Sumanjha_Accidental_Dba
I really like what you guys are usually up too. Such clever work and coverage!
ReplyDeleteKeep up the terrific works guys I've included you guys to blogroll.
my web-site: duvet covers queen
Thank you so much friend such a nice comment on my post.. you really encourage my works...
DeleteHeya this is kind of of offf topic but I was wanting to know if blogs
ReplyDeleteuse WYSIWYG editors or if you have to manually code with HTML.
I'm starting a blog soon but have no coding skills so I wanted to get
advice from someone with experience. Any hewlp would be enormously appreciated!
my web-site - queen duvet covers
thnks
DeleteAsking questions are really pleasant thing if you are not understanding something
ReplyDeletetotally, but this article presents good understanding even.
Here is my homepage; kids comforter sets
thnks
ReplyDelete