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!

preguntada hace 5 años295 visualizaciones
1 Respuesta
0

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

select current_user > master_user

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas