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!

質問済み 5年前294ビュー
1回答
0

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

select current_user > master_user

回答済み 5年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン