August 24, 2010 at 3:53 pm
Hello
On my MS Sql server I have two database
Both have User zitouch
Both seems to have same permission for zitouch
If I start Management studio with Windows Authentication I can open and browse the two database
If I start Management studio with SQL Authentication and Login "zitouch" I can open and browse ONE of the two database but I can't even open the other
What can be the difference ?
August 24, 2010 at 3:58 pm
Hello
I think I've found something
The user on the fault DB have no Login !
How can I add a login to a user ?
August 24, 2010 at 4:35 pm
You can use sp_change_users_login to fix orphaned users. There are different parameters - so you'll need to look it up in BOL for the exact parameters you'll need.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
August 24, 2010 at 4:38 pm
As posted http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=149244, you almost certainly have an orphaned login. Common when restoring a DB on a different instance. Hit google (or your favourite search engine) and search on that term, there's lots and lots written and the fix is trivial.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 24, 2010 at 11:19 pm
August 25, 2010 at 1:34 pm
Might as well link the existing article here on SSC on the topic: http://www.sqlservercentral.com/scripts/Maintenance+and+Management/31605/%5B/url%5D
=============================================================
/* Backups are worthless, Restores are priceless */
Get your learn on at SQL University!
Follow me on Twitter | Connect on LinkedIn
My blog: http://sqlchicken.com
My book: Pro Server 2008 Policy-Based Management
August 25, 2010 at 2:45 pm
Thanks a lot !
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply