July 25, 2002 at 7:30 am
I have a null user somewhere on my server. Is there a simple query that would show me which DB it is? I have an article for my error which I am trying to resolve:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q218172&
Thanks!
Neil
July 25, 2002 at 7:44 am
Not sure, but I think running sp_change_users_login 'report' may help.
Andy
July 25, 2002 at 7:55 am
I was hoping to find somethign that ran that on all the databases. Right now none of these databases show a DBO user which I can't imagine is good!
Right?
Neil
July 25, 2002 at 7:38 pm
I dont think its that bad. Been a while since I have seen it, drawing a blank. Did you try the sp_change I posted earlier to see if it found anything?
Andy
July 26, 2002 at 5:39 am
Try
sp_MSForEachDB '
PRINT ''----------------------------''
PRINT ''?''
PRINT ''----------------------------''
EXEC ..sp_change_users_login ''report'''
Should give a nice output for all the DBs and allow you to see what data is from where.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
July 28, 2002 at 12:18 am
Hi,
the following query will show u null user that is BUILTIN\Administrators:
"select * from syslogins"
SaNaZ
July 30, 2002 at 9:07 am
I don't see a syslogins table in any of my databases and the query you posted returns an Invalid Object Name error. Any idea why? I am running 2000.
Mercy,
Afshin
July 30, 2002 at 9:28 am
The syslogins table is in the Master DB. Open Query Analyzer and run it from there. I could not see it in EM either. I presume it must be hidden, somehow?! Is that the case...? Anyone? If so, why?! I'm Just curious plain now!
Aside from BUILTIN\Administrators being NULL, Domain Groups are also NULL.
Clive Strong
July 30, 2002 at 9:36 am
Yes, I looked in that database in EM and didn't see the syslogins table either. Also, what is a domain group?
July 30, 2002 at 9:38 am
Another thing, I just ran the query in the master database and the results shows that the BUILTIN user does not have a NULL name or loginname. Is this the same for you? The name and loginname columns in my database are filled with the "BUILTIN/Administrators" value.
July 30, 2002 at 9:42 am
There is a syslogins table in master. It may be materialized, so do not use EM. Use Query Analyzer to run "select * from syslogins"
A domain group is an NT group.
None of mine are NULL.
Check sysusers table in each database and look for a NULL or for a sid not matching in master.dbo.syslogins.
Steve Jones
July 30, 2002 at 11:15 am
Syslogins is a view. The table is sysxlogins.
Andy
July 30, 2002 at 11:18 am
I removed the one null user but I still have the problem below:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q218172&
Any ideas?
Neil
July 30, 2002 at 12:15 pm
Neil,
I went to the site and they have posted a workaround for your problem. Have you tried the workaround and did it work?
July 30, 2002 at 1:33 pm
To work around this problem, use the sp_changedbowner stored procedure to change the owner of any databases owned by a login that does not exist on the new server to a login that does exist on the server.
How do I determine that?
Neil
Viewing 15 posts - 1 through 15 (of 17 total)
You must be logged in to reply to this topic. Login to reply