bobrossi56
asked on
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
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
ASKER
Not a SQL guy...how do I run this SQL profiler?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
You could identify the issue?
ASKER
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.
I see. The instance was configured for Windows Authentication only and you changed it to Mixed Authentication to allow SA to connect.
Good catch.
Good catch.
btw, it always was and is and will be a bad practice to use sa for a normal application.