on 12-15-2015 12:23 AM
I'm remembering a bug in the sp_who stored procedure that would cause it to not display databases that were owned by a user that didn't exist in syslogins (i.e. sysdatababases.suid did not join to syslogins.suid). Is that the case on this server?
-bret
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
what Bret means and what I've also seen, is that each database must have a valid owner.
So the suid in sysdatabases must also be found in syslogins.
The following query returns databases and owners. Here you should see valid owners and not "null":
select name, suser_name(suid) as owner from master..sysdatabases
Best regards,
Juergen
Hi Luz,
Which version you have installed??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I ran the query and in all databases the owner is NULL!.
We are going to change the dbowner in each database.
Thanks to all!
Luz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.