Question : Login failed for user 'TestDomain\testuser'. The user is not associated with a trusted SQL Server connection.

I am writing a program in C# attaching to a SQL 2005 server.  I am getting the following error message

Login failed for user 'TestDomain\testuser'. The user is not associated with a trusted SQL Server connection.

I have given this user complete writes to the database I am accessing.  What reason would the server give this error message?

Thanks
Kenny


Answer : Login failed for user 'TestDomain\testuser'. The user is not associated with a trusted SQL Server connection.

>If I do not want to have to setup a user for every user access the server.
create a windows domain group, and create for that a login in sql server.
ensure that all windows account are part of that windows group, that will give them implicitly access in sql server also, via the nt group/sql login.

did you grant the login some permissions in the database?
Random Solutions  
 
programming4us programming4us