|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:55 AM
Points: 307,
Visits: 743
|
|
| Whats the best way to copy logins, users, logins with password along with exact status of enable/disable from source 2008 to destination server 2008
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 5:28 PM
Points: 11,627,
Visits: 27,692
|
|
balasach82 (3/6/2013) Whats the best way to copy logins, users, logins with password along with exact status of enable/disable from source 2008 to destination server 2008
Microsoft provides a downloadable query named sp_help_revlogin: there's multiple versions so download the version that matches your server(ie SQL2008)
How to transfer logins and passwords between instances of SQL Server
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:55 AM
Points: 307,
Visits: 743
|
|
what about using ssis to move logins or using management studio to script out logins and users (but it comes with default disable login option)
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 5:28 PM
Points: 11,627,
Visits: 27,692
|
|
balasach82 (3/6/2013) what about using ssis to move logins or using management studio to script out logins and users (but it comes with default disable login option)
SSIS has a Transfer logins Task as well, so that is another option; I personally do most of my work in TSQL, and not much in SSIS.
Transfer Logins Task
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:02 PM
Points: 5,269,
Visits: 11,203
|
|
be aware the SSIS transfer logins task changes the password for sql logins to an arbitrary value (for security reasons but also makes it useless )
---------------------------------------------------------------------
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:55 AM
Points: 307,
Visits: 743
|
|
absolutely right. SSIS just creates a copy of the login, but the password is not copied. whats the purpose then to just copy login only. I treid scripting out logins, whch had some jumbled password. Even that too did not work. It just created login in SLQ 2008. Is there any difference in login passwords in SQL 2005 and 2008.
I have to do this first from 2005 to 2008. Am wound up in the first stge :-(
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:02 PM
Points: 5,269,
Visits: 11,203
|
|
if you use sp_help_revlogin it copies out the password in an encrypted format. Just run the script as its produced on your destination server and the login will be created with the same sid and password as on the source server, and it will all marry up.
The password is only an issue with SQL logins, windows authenticated logins will not have an issue as the OS level password is trusted.
no difference between 2005 and 2008.
---------------------------------------------------------------------
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Yesterday @ 1:53 AM
Points: 1,474,
Visits: 2,342
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:55 AM
Points: 307,
Visits: 743
|
|
Georege, gazareth, correct. any below options are futile. I was under the impression, that scriptingo out logins which also has password, would work. But that is not the case.
scripting out logins transfer logins task in ssis
Another question, once moving the logins using the revlogin, I can script out USERS from management studio. correct?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:02 PM
Points: 5,269,
Visits: 11,203
|
|
balasach82 (3/7/2013) Georege, gazareth, correct. any below options are futile. I was under the impression, that scriptingo out logins which also has password, would work. But that is not the case.
scripting out logins transfer logins task in ssis
Another question, once moving the logins using the revlogin, I can script out USERS from management studio. correct?
passwords will be correct with sp_help_revlogin
users will go across with the database
---------------------------------------------------------------------
|
|
|
|