SQL Server Project - Failed to connect to databse...

Hi! I installed SQL Server on my server today and im new to it. I configured it and now im trying to make a SQL Server Project with my other computer... Then the program asks for some account information to logon to a database on the server. Then i fill it out and i get this error: Login failed for user "anaxyd". The user is not associated with a trusted SQL Server connection.
Do i need to join the domain that the server is in? Or is it something with my account at the server? I have created a account at the server management studio in my server: MAINSERVER\Security\logins\anaxyd.
Whats wrong?
[608 byte] By [AnaXyd] at [2008-1-26]
# 1
Can someone please help me?
AnaXyd at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Security...
# 2
The login still has to be given permissions on the server and permissions to the database....especially for testing you will want to set up your server security as "windows authentication only"
DMan1 at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Security...
# 3

How do I give users permissions to the server?
Plz answer.. Im stuck here.. Tongue Tied

AnaXyd at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Security...
# 4
The error message that you obtained:

"Login failed for user "anaxyd". The user is not associated with a trusted SQL Server connection."

indicates that you are attempting to connect using a SQL login (anaxyd) to a server that only accepts Windows authentication. You should switch the authentication mode to mixed to enable loging in using SQL logins.

To connect using a SQL Login, you usually need the following:

(1) server should accept mixed authentication (both Windows and SQL logins)
(2) the login that you are using must exist on the server - it must have been created using CREATE LOGIN or sp_addlogin
(3) the password that you specify must be correct

The error message indicates that condition (1) is not true.

Thanks
Laurentiu

LaurentiuCristofor at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Security...
# 5
Ok.. i have changed the option to accept mixed...

But i need help to create a user... Can u specify it more? Im a newb... :D

AnaXyd at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Security...
# 6
You can look at the CREATE LOGIN and CREATE USER topics in Books Online (BOL).

Here is a quick example for creating a login, a database, and a user for the login in that database:

create login alice with password = 'password'
go
create database sandbox
go
use sandbox
go
create user alice
go

You can now login as 'alice' and you can work in database 'sandbox'.

Thanks
Laurentiu

LaurentiuCristofor at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Security...

SQL Server

Site Classified