SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 can not log in to sql server 2005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dirk_Name
Starting Member

Cambodia
3 Posts

Posted - 05/08/2012 :  21:30:14  Show Profile  Reply with Quote
Hi all friends,

I'm new in sql server 2005. When i finished install sql server, i have one user account (sa) and password. First I can log in to sql server properly.

but since i have changed something in Server Property by right click on Server name select Property and then select security
( i have change Server Authentication from SQL Server and Window Authentication Mode to Window Authentication Mode).

Now I can't log in to SQL Server either with sa or Window Authentication.


What's can i do now to deal with this problem?

Please help me

Thank in advance

Dirk_Name

vinu.vijayan
Posting Yak Master

India
227 Posts

Posted - 05/09/2012 :  06:33:30  Show Profile  Reply with Quote
This maybe because the Windows account you are using is not authorized to Log into SQL Server.
So, from next time Select SQL Server Authentication and use the 'sa' log in and password to log in.

N 28° 33' 11.93148"
E 77° 14' 33.66384"
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1769 Posts

Posted - 05/09/2012 :  14:58:30  Show Profile  Visit jackv's Homepage  Reply with Quote
Change it back to SQL Server and Window Authentication Mode.
To log on using Windows Authentication, create a Logon , that is AD or a local Windows Acct - then connect in the context of that Windows Account

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

Dirk_Name
Starting Member

Cambodia
3 Posts

Posted - 05/09/2012 :  20:03:37  Show Profile  Reply with Quote
I have a message of log in failed with user sa. ( Login failed for user 'sa'. The user is not associated with trusted SQL Server Connection. (Microsoft SQL Server, Error: 18452).

Anyway, can you explain clearly, remember i'm a new user in SQL Server.

Thank you

Dirk_Name
Go to Top of Page

vinu.vijayan
Posting Yak Master

India
227 Posts

Posted - 05/10/2012 :  00:07:37  Show Profile  Reply with Quote
quote:
Originally posted by Dirk_Name

I have a message of log in failed with user sa. ( Login failed for user 'sa'. The user is not associated with trusted SQL Server Connection. (Microsoft SQL Server, Error: 18452).

Anyway, can you explain clearly, remember i'm a new user in SQL Server.

Thank you

Dirk_Name



This error means that SQL server has been configured to operate in "Windows Authentication Mode (Windows Authentication)" and doesn't allow the use of SQL accounts.

To overcome this you'll have to change the Authentication Mode of the SQL server from "Windows Authentication Mode (Windows Authentication)"
to "Mixed Mode (Windows Authentication and SQL Server Authentication)".

Check out the following link:

http://support.microsoft.com/kb/555332

N 28° 33' 11.93148"
E 77° 14' 33.66384"
Go to Top of Page

Dirk_Name
Starting Member

Cambodia
3 Posts

Posted - 05/10/2012 :  10:51:44  Show Profile  Reply with Quote
Thank you vinu.vijayan and other friend

I think vinu.vijayan give me a great idea.

Now, I can log in to SQL Server Properly.

Thank you all,

Dirk_Name
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1769 Posts

Posted - 05/12/2012 :  04:53:37  Show Profile  Visit jackv's Homepage  Reply with Quote
Glad to see it worked

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

vinu.vijayan
Posting Yak Master

India
227 Posts

Posted - 05/14/2012 :  04:37:24  Show Profile  Reply with Quote
quote:
Originally posted by Dirk_Name

Thank you vinu.vijayan and other friend

I think vinu.vijayan give me a great idea.

Now, I can log in to SQL Server Properly.

Thank you all,

Dirk_Name



You're welcome...I'm glad it helped you.

N 28° 33' 11.93148"
E 77° 14' 33.66384"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000