This article original URL is https://msdn.microsoft.com/en-us/library/ee406927.aspx

Backing Up and Restoring Logins

 
 

You can back up and restore logins using a script as described in the following procedures.

To back up a login using a script

  1. Open SQL Server Management Studio.

  2. Expand Security, and expand the list of Logins.

  3. Right-click the login you want to create a backup script for, and then select Script Login as.

  4. Select CREATE To, and then select one of New Query Editor WindowFile, or Clipboard to select a destination for the script. Typically, the destination is a file with a .sql extension.

  5. Repeat this procedure from Step 3 for each login you want to script. Refer to the list of BizTalk Server related logins to determine which logins you need to script.

To restore a login from a script

  1. Open SQL Server Management Studio.

  2. On the File menu, Open the file containing the scripted login.

  3. Execute the script to create the login.

文章標籤
全站熱搜
創作者介紹
創作者 痞客興 的頭像
痞客興

痞客興的部落格

痞客興 發表在 痞客邦 留言(0) 人氣(112)