Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server authentication problem
Message
 
 
À
17/01/2013 11:33:38
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01563112
Message ID:
01563121
Vues:
39
I think you are maybe on to something. I created this database on my SQL Server and then attached it to the customer SQL Server. What I don't understand is I never created a user in my SQL Server. Do I am trying to figure out what you mean by "delete first the login at the database". How do I find out if this login exist? Thank you.

>There is a nuance that is never really explained, but has bit me several times. When you create a user, you can do it at the database level or at the server level. If you create it at the database level you'll get errors. You need to create it at the server level (meaning the Security node for the server in SSMS), then add that person to the database. If the login already exists at the database level, you'll need to delete it first. I don't know why you can create a login at the database level because it's never worked for me.
>
>
>>Hi,
>>
>>I am testing access to a new customer database (not the first time a very similar environment). What happens is when I use Windows authentication (specify in the connection string IntegratedSecurity True) connection works. But when I try SQL Server authentication I get connection error (basically connection denied). For SQL Server authentication I created login and then in the database I created user of the same name. The user has roles: db_datareader, db_datawriter, db_owner. But nothing works. I have double checked the password (I made it very simple 'test') but can't make the SQL Server authentication to work.
>>What could be missing? TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform