This is what EM runs to show usersselect DISTINCT o.name, loginname = (case when (o.sid = 0x00) then NULL else l.loginname end), user_name(o.gid), o.uid, o.hasdbaccess from dbo.sysusers o left join master.dbo.syslogins l on l.sid = o.sid where ((o.issqlrole != 1 and o.isapprole != 1 and o.status != 0) or (o.sid = 0x00) and o.hasdbaccess = 1)and o.isaliased != 1 order by o.name
If the sid in sysusers does not match one in master.dbo.syslogins then loginname returns NULL. This can happen when you are a member of an NT group that is has a server login but no explicit login for your username. If you create a database then your sid will be in sysusers against the dbo user but with no match in syslogins and hence will show up null. However if you look at the properties of the database you will see the actuall username as the database owner.If you modify the query to beselect DISTINCT o.name, loginname = (case when (o.sid = 0x00) then NULL else ISNULL(l.loginname,SUSER_SNAME(o.sid)) end), user_name(o.gid), o.uid, o.hasdbaccessfrom dbo.sysusers o left join master.dbo.syslogins l on l.sid = o.sid where ((o.issqlrole != 1 and o.isapprole != 1 and o.status != 0) or (o.sid = 0x00) and o.hasdbaccess = 1)and o.isaliased != 1 order by o.name
then you should see the correct nameHTHJasper Smith