1

Before I ask my question, let me mention that my SQL Server is installed on a member server of a domain (it belongs to the domain but is not an AD server).

I am having trouble adding a network user in SQL Server Management Studio.

First I tried adding a user by right-clicking security and clicking new -> login. I wanted to add a network user, so I clicked locations. But only the name of the local server was showing. I was unable to browse my domain users (at that time I was logged in through a network user on my SQL Server machine).

So I tried another approach. I tried to add a network user through Transact-SQL as follows:

create login [domain\user] from windows;

But I got an error message saying - Windows NT user or group not found - even though the user existed on my domain server.

What am I doing wrong?

Rohit Gupta
2,1248 gold badges20 silver badges25 bronze badges
asked Dec 23, 2015 at 6:16
2
  • 2
    Could you please let us know your version of SQL Server and other software you are working with to make it easier to answer your question? =) Commented Dec 23, 2015 at 6:43
  • Are you sure that the server is joined to that domain from where you are trying to add the user from? Commented Dec 23, 2015 at 7:13

1 Answer 1

2

For me it worked to generate a script with SSMS.

USE [master]
GO
CREATE LOGIN [domain\user] FROM WINDOWS WITH DEFAULT_DATABASE=[master]
GO
ALTER SERVER ROLE [role] ADD MEMBER [domian\user]
GO
answered Oct 10, 2016 at 13:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.