title: How to get number of connections for Azure SQL Server?
body: <p>Before dropping a database on an Azure Sql Server I have to check if another user is connected to that db.</p>
  
  <p>Using the stored procedure <code>sp_who2</code> fails with: 
  <code>"Could not find stored procedure 'sp_who2'."</code></p>
  
  <p>Trying to get informations from <code>sys.sysprocesses</code> also fails with message:</p>
  
  <pre><code>"Reference to database and/or server name in 'master.dbo.sysprocesses' is not supported in this version of SQL Server."
  </code></pre>
  
  <p>How do I get the info I need?</p>