Logging into SQL server with SA account

Not a SQL guy at all, but trying to do my best. We have an old SQL server 2008 R2 with several databases on it, the VB apps that hit the DB use an .INI file, and in the .INI file the SQL login sa with no password is stipulated, and works fine.

Got a new SQL server, (still 2008 R2) moved the databases over, however the sa account is not allowed to have no password. So I right clicked on the sa account and set a password. Then I edited the .INI file to now include the password for the sa account. When I launch the app I get an error message that says login to sa account failed. I double checked and the password I set is the password in the .INI file, so no error there. And the sa account has the same roles and database assignments as the old SQL server.

What am I doing wrong?
thx experts...
-Bob R
bobrossi56Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Run SQL Profiler to see whether to login fails (maybe the password is not used) or it does connect but has different issues.

btw, it always was and is and will be a bad practice to use sa for a normal application.
0
bobrossi56Author Commented:
Not a SQL guy...how do I run this SQL profiler?
0
ste5anSenior DeveloperCommented:
Untitled.png
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Vitor MontalvãoMSSQL Senior EngineerCommented:
You changed server and you only changed the SA password in the .INI file? What about the server name? Did you change it too in the .INI file? If not it still pointing to the old server.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
You could identify the issue?
0
bobrossi56Author Commented:
I ran profiler as ste5an suggested and discovered some properties were not set to allow both Windows AND SQL authentication, I fixed those properties and now it works.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
I see. The instance was configured for Windows Authentication only and you changed it to Mixed Authentication to allow SA to connect.
Good catch.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.