Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 623533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:06:10+00:00 2026-05-13T19:06:10+00:00

In on-premises Microsoft SQL Server, when I issue this query: SELECT * FROM sys.dm_exec_sessions

  • 0

In on-premises Microsoft SQL Server, when I issue this query:

SELECT * FROM sys.dm_exec_sessions

I get one record per window in SSMS. If I open several query windows in SSMS, I get a record for each of those, even if they’re not doing anything. In Azure, when I issue that same query, I only get one record back. Here’s the kicker – I even only get one record back when I’ve got multiple windows in SSMS doing active work in Azure.

Here’s a screenshot:

SQL Azure http://s3temp.brentozar.com/azure1.png

In that screenshot, I’ve got three active tabs in SSMS. Two of them are running giant insert statements that take several seconds to execute, and the third one is querying sys.dm_exec_sessions – but I’m only getting one record back. I get multiple records in sys.dm_tran_active_transactions and sys.dm_tran_database_transactions, but this changes how I report on active queries if I can’t tie it back to individual sessions. Is that expected behavior, or something MS is working to fix in Azure vNext?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:06:10+00:00Added an answer on May 13, 2026 at 7:06 pm

    After escalating this inside Microsoft, they’ve agreed that there’s a bug in sys.dm_exec_sessions. It’s improperly filtered, so it always shows just your current session and no other sessions regardless of your permissions. They’ll update it in a future release of SQL Azure.

    More info in the MSDN thread if you need proof:

    http://social.msdn.microsoft.com/Forums/en-US/ssdsgetstarted/thread/db88c830-0b0a-4e38-ad93-062d12d55c31

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 340k
  • Answers 340k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer These methods are generic. However, the compiler automatically infers the… May 14, 2026 at 4:51 am
  • Editorial Team
    Editorial Team added an answer Use after or insertAfter: $('a').after('text'); $('text').insertAfter('a'); May 14, 2026 at 4:51 am
  • Editorial Team
    Editorial Team added an answer Use the following code: #!/usr/bin/perl use CGI qw/:standard/; print header,… May 14, 2026 at 4:51 am

Related Questions

Are there any online resources which show the basic steps to access the Microsoft
Prior to Excel 2007, we used to catch the open file event in Excel
I'm analysing a deadlock that's occurring when using a native library alongside managed code.
We have developed an application using Grails, intended to be hosted on our public
I would be grateful for any suggestions on how to add license key enforcement

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.