Ask the Expert

Problem trying to connect with the sa account

I have installed SQL Server 2000 on my machine. The problem is that when I try to register SQL Server through Enterprise Manager using SQL Server Authentication ( it gives me error code:18452 "Not trusted Connection. Login failed for sa". But if I try through WINDOWS NT Authentication it works fine. I think the SQL Server installation was done using WINDOWS NT. Authentication. How do I connect using sa? Should I reinstall or is there some other way?

    Requires Free Membership to View

You can not connect using the sa account if you have installed your SQL Serevr using intergrated security. If you are an administrator on that machine, why would you even want to connect using the sa account. Your Windows credentials give you admin access to the SQL Server. They are also much more flexible and a much better choice than using the sa account. Additionally, having the SQL Server installed this way protects you from all of the stupid security problems developers create by embedding the sa account into their applications.


For More Information

This was first published in June 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: