Avatar of abhijitm00
abhijitm00Flag for United States of America

asked on 

Migrate SQL logins from source to destination server

Looking to migrate SQL 2008R2 logins to a SQL 2016 SQL Express server in another domain. Databases have already been backed up, exported and imported but need to export/import Logins and passwords from source SQL server and restore to destination server.

Thanks
DatabasesMicrosoft SQL ServerSQL

Avatar of undefined
Last Comment
abhijitm00
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of abhijitm00
abhijitm00
Flag of United States of America image

ASKER

Thanks I did see that article. Wanted to see if someone has had success with it. It seems simpler to just create the SQL logins and create new passwords
If you don't have too many logins i wouldn't go that way (Ms) ..but...a SQL script will stop on an Error while a mistyped password maybe will cause more issues than adopting a complex SQL script
Avatar of ste5an
ste5an
Flag of Germany image

Never tried it, but according to the description, I would guess that it should not work:

•A password can be hashed in the following ways:
•VERSION_SHA1: This hash is generated by using the SHA1 algorithm and is used in SQL Server 2000 through SQL Server 2008 R2.
•VERSION_SHA2: This hash is generated by using the SHA2 512 algorithm and is used in SQL Server 2012 and later versions

Consider it as good exercise in disaster recovery, where credentials maybe also lost :)
Avatar of Thomas U
Thomas U
Flag of Switzerland image

I used the script from microsoft (see link from John Tsioumpris "Solution") multiple times to move SQL Logings from one server to another and it worked like a charm.
The only thing that could happen is, that you need to reset the passwords on the new server (could)


regards
Thomas
Avatar of abhijitm00
abhijitm00
Flag of United States of America image

ASKER

Thanks Thomas would the document work for moving logins over domains?
Avatar of abhijitm00
abhijitm00
Flag of United States of America image

ASKER

I have tried the script from the article and it worked. I just removed the NT domain accounts as they were being moved to a  new domain. The passwords had to be reset. Thanks for everyone's help
Avatar of abhijitm00
abhijitm00
Flag of United States of America image

ASKER

Thanks for everyones assistance
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo