Kobojunkie
Programmer
- May 28, 2008
- 16
I need to create a role that allows me to log in from my application, carry out basic DML manipulations and SELECT without compromising the security of my database. Is there a tutorial or walk through that can help with this please? Thanks in advance
Login failed for user 'username'. The user is not associated with a trusted SQL Server connection.
Additional Information on what I have actually done here to help. I created a Login and then a Role account. I then created a User account and assigned the Login and the Role to it. I still get the above error message when I try to connect.
CREATE LOGIN MagicCoaster WITH PASSWORD = 'SpaceCoaster';
CREATE ROLE [PublicDBUser] AUTHORIZATION [main_dbuser]
USE SpeakersBoxOffice;
CREATE USER MagicCoaster FOR LOGIN MagicCoaster
WITH DEFAULT_SCHEMA = PublicDBUser;
GO
Login failed for user 'username'. The user is not associated with a trusted SQL Server connection.
Additional Information on what I have actually done here to help. I created a Login and then a Role account. I then created a User account and assigned the Login and the Role to it. I still get the above error message when I try to connect.
CREATE LOGIN MagicCoaster WITH PASSWORD = 'SpaceCoaster';
CREATE ROLE [PublicDBUser] AUTHORIZATION [main_dbuser]
USE SpeakersBoxOffice;
CREATE USER MagicCoaster FOR LOGIN MagicCoaster
WITH DEFAULT_SCHEMA = PublicDBUser;
GO