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!

gefragt vor 5 Jahren294 Aufrufe
1 Antwort
0

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

select current_user > master_user

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen