Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

How do I query all my databases?

$
0
0

Hi

I have the code:

use NewContentDB
SELECT name FROM dbo.sysusers

This sends the query to the database 'NewContentDB'.

I am trying to list all database users.

How can i change this so that it sends the query too all my databases?

any help wil be appriciated

br

Bjorn


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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