SQL Server master user privilege problem

0

Hello All,

I have created an SQL Server - Enterprise Edition instance with engine version 11.00.5058.0.v1. After the creation, I am trying to perform some SQL operations but I run into permission issues.

CREATE LOGIN userName WITH PASSWORD = 'sameFakePassword'; ==> SUCCESS
CREATE USER userName FOR LOGIN userName WITH DEFAULT_SCHEMA=dbo ==> Error : User does not have permission to perform this action.
select current_user ==> guest

I am not so familiar with SQL Server, but is it normal to see the current user as guest, although I used the master username and password to connect to the database.

Thanks a lot!

asked 5 years ago274 views
1 Answer
0

I don't know if a magic happened, but not it works. when I do

select current_user > master_user

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions