SQL Server 2000. Is there any SP can list what databases are owned by a specific login(role)? Like:
EXEC sp_xxxx 'myloginname'
I want to see a set of database names that's owned by myloginname. Thanks.
SQL Server 2000. Is there any SP can list what databases are owned by a specific login(role)? Like:
EXEC sp_xxxx 'myloginname'
I want to see a set of database names that's owned by myloginname. Thanks.
Unsure what you mean. So, how about these to point you in the right direction?
sp_helplogins - Provides information about logins and their associated users in each database sp_helpuser - Reports information about the Microsoft users and roles in the current database