Link to home
Start Free TrialLog in
Avatar of iainmacleod
iainmacleodFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Login Failed to Newly Created SQL Database

Hello,
Running SQL Express 2012 and have created a database "Admin_Data".
Using ODBC connection I can connect to the system databases but get an error on the "Admin_Data"

Attempting connection
[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Login failed for user 'DOMAIN\username'.
[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Cannot open database "Admin_Data" requested by the login. The login failed.
Disconnecting from server

TESTS FAILED!

I cannot see what the difference is between the 2..

Any help gratefully received
Iain
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Did you do the installation in Mixed Mode?

If you connect as SA and go to the database security, do domain users have permission?

This is an assumption, but did you change 'DOMAIN\Username' for security purposes or is that what it shows the login tried as?
Avatar of iainmacleod

ASKER

Dustin, thanks for your reply.
Have tried mixed mode as well as Windows. I finally managed to get access by adding my Domain username into the logins section.
Ideally I wanted to give all DOMAIN USERS access to this database (With restrictions) . Hopefully to give some stability and control via AD.
DOMAIN\username was for security.
Although reasonably ok with AD etc I am new to SQL so would be interested if I am going about this in the best way.
Thanks
Iain
ASKER CERTIFIED SOLUTION
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dustin, Thank you very much. Works a treat...