Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

sp_who2 does not return all connections in a contained database

$
0
0

If I login to SQL Server as an administrator and I run s_who2 I get all the connection information for all databases.

If I login to SQL Server to a contained database (using a contained database user) then sp_who2 only returns the current connection which seems to be correct.

However if I also run an application which connects to the database in the same way i.e. using the contained database and contained database user then run the sp_who2 command in SQL Management Studio (logged in as the contained user) I only see one connection.

If I run sp_who2 under the administrator account I can see both of these connections.

So why doesn't running sp_who2 in a contained database using a contained user show all the connections on that database?

Thanks

Ian


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>