Link to home
Start Free TrialLog in
Avatar of gauravflame
gauravflame

asked on

Account

How to create a Trusted User account in SQL Server ?
ASKER CERTIFIED SOLUTION
Avatar of chapmandew
chapmandew
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
whoops...change FOR to FROM

create login [domain\username] from windows
go
user somedbname
go
create user someusername for login [domain\username]
Avatar of gauravflame
gauravflame

ASKER

user somedbname
-- somedbname is sqlserver
sorry, mean to write:

use somedbname  


somedbname should be replace w/ the name of your database
getting syntax error for
user somedbname
remove the r from user, and replace somedbname w/ the name of a database on your machine.