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!

feita há 5 anos294 visualizações
1 Resposta
0

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

select current_user > master_user

respondido há 5 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas