Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 112
  • Last Modified:

How to handle SQL server on new DC/AD domain

I have SQL Server 2005 running on a Server 2008 Standard host. This host had been attached to a SBS 2008 domain. I removed the SQL Server host from the SBS 2008 domain and attached it to a new Samba4 DC/AD.

The same user ID is used to log onto the SQL Server on the new domain and that works ... for logging in. When I open the SQL Server Management Studio and attempt to log in via Windows Authentication, I get "Login failed for user HPRS\mark", which is the new, correct user.

Is there something I an do to permit the new domain user to log in via Windows Authentication?
0
jmarkfoley
Asked:
jmarkfoley
  • 2
1 Solution
 
arnoldCommented:
Within SSMS, you need to add the user into the server security folder with a Sysadmin role.
Login using sa, and after you add, you should be able to establish a second connection using windows authentication.
0
 
Mandeep SinghDatabase AdministratorCommented:
Hi,

To do so follow these stpes:

Connect to your SQL Server Instance.
Navigate >Security > Logins, right-click Logins, then choose New Login.
On Pop up window, click the Search button to browse for a local or domain login.
Search button opens the Select User or Group dialog box, search username.

Be sure windows authentication is selected. click on server roles and select sysadmin, be sure that public must also be checked. and click on OK.
You are done. you can now login.
0
 
jmarkfoleyAuthor Commented:
That did the trick! Thanks
0
 
jmarkfoleyAuthor Commented:
Mandeep Singh: I know I closed this already, but as I went to 'drop user' for other users on databases I got the error

drop user hprs\joe

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '\'.

How can I do this?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now