Link to home
Create AccountLog in
Avatar of cwest1
cwest1Flag for United States of America

asked on

SQLEXPRESS trusted connection issue

Well, here I am again with an SQL connection problem :) This time I can't connect SSMS to SQLEXPRESS using SQL Auth (instead of Windows auth, which works). I've set SQLEXPRESS to allow remote connections through TCP and N/Pipes, tried SA and even added a new sysadmin account mapped to a specific db. I always get "the user is not associated a trusted SQL Server" connection error. Appreciate any suggestions. Thanks in advance.
Avatar of fmonroy
fmonroy
Flag of Mexico image

Is the "SQL Server Browser" service at the server running?

Have you restarted the SQL Express service since you changed to mixed authentication?

Has the account you are using the enough privileges on server and database?
Avatar of cwest1

ASKER

yes, yes, and I would have thought the SA user had adequate perms. I'm unsure how to check though.
oh, using SA, this user has full access as default, sometimes it's disabled, have you checked it?
Avatar of cwest1

ASKER

login is enabled for SA
check SA user mapping... at SA properties
Avatar of cwest1

ASKER

SA is mapped to master (and other dbs that are standard) as dbo
is it mapped to the default database you are connecting to?
Avatar of cwest1

ASKER

No. Create fails. Cannont use special principal SA. SQLEXPRESS isn't letting me map SA to new dbs.
Ok, create another user, give full access to it to test (at server and new db) then try to make a connection with the new user.
Avatar of cwest1

ASKER

I tried that before posting. Added user SA2, mapped to mydb as dbo, same error. One thing I just noticed when loking at SA properties, SQL Authentication is grayed out in the status window. That is, it can't be selected. I suspect that might be a registry setting, but I don't know where.
ASKER CERTIFIED SOLUTION
Avatar of fmonroy
fmonroy
Flag of Mexico image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of cwest1

ASKER

Oh shxx. Mixed mode wasn't selected. Duh. I was assuming that allowing remote connections implied SQL Auth. It never occurred to me that you'd connect remotely with a windows account. Thanks for the guidance. Much appreciated.
You're welcome