Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i tried to open my database an error occur "cannot open database...[database path].. requested by the login. login failed.login failed for user 'user-pc\user'.

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 3-May-14 0:35am
v2
Comments
OriginalGriff 3-May-14 6:36am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
OriginalGriff 3-May-14 6:36am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Rahul VB 3-May-14 7:06am    
Is this Deja Vu? :-)
Maciej Los 3-May-14 7:15am    
Do you feel that you have seen it before? :laugh:
Rahul VB 3-May-14 7:25am    
I feel so, because every time i see, griff is always up with such kind of an answer. so at times i get confused with whether it was the same question or the same answer. :))

1 solution

There are 2 ways of authentication to the SQL server[^];

  1. Windows authentication - is the default, and is often referred to as integrated security because this SQL Server security model is tightly integrated with Windows. Specific Windows user and group accounts are trusted to log in to SQL Server. Windows users who have already been authenticated do not have to present additional credentials
  2. Mixed mode - supports authentication both by Windows and by SQL Server. User name and password pairs are maintained within SQL Server


You did not specify what kind of method you have chosen.

Run MS SQL Server Management Studio[^] and check it. Depending on these settings, set proper connection string[^].

For further information, please see:
Recommendations and Guidelines on Configuring the Authentication Mode for SQL Server[^]
Choose an Authentication Mode[^]
Change Server Authentication Mode[^]
 
Share this answer
 
Comments
Rahul VB 3-May-14 7:31am    
Very nice.
Maciej Los 3-May-14 7:47am    
Thank you ;)
King Fisher 3-May-14 7:32am    
Claps For Answered Unclear Question :) my 5
Rahul VB 3-May-14 7:36am    
Is king_fisher your favorite brand brother? its mine too :)
Maciej Los 3-May-14 7:47am    
Let's say: all members of this forum are my friends ;) It's the Biggest Family of the World!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900