本文概述了 SQL Server 遷移助理(SSMA)主控台的命令列選項。
Arguments
-s 或 script
必修條件:是
切換參數: scriptfile
允許的值:有效的 XML 檔案名稱。 主控台腳本定義檔案。
-v 或 variable
必要條件:不
Switch 參數: variablevaluefile
允許的值:有效的 XML 檔案名稱。 如果腳本檔案使用變數,你必須指定這個檔案。
-c 或 serverconnection
必要條件:不
Switch 參數: serverconnectionfile
允許的值:有效的 XML 檔案名稱。 此檔案包含伺服器連線資訊。
-x 或 xmloutput
必要條件:不
切換參數: xmloutputfile
允許的值:以 XML 格式表示主控台輸出。 如果你沒指定這個選項,預設輸出就是文字格式。 如果你沒指定 xmloutputfile,XML 輸出就會到
stdout。 xmloutputfile 是主控台輸出以 XML 格式寫入的檔案名稱。
-l 或 log
必要條件:不
Switch 參數: logfile
允許的值:有效檔名。
-e 或 projectenvironment
必要條件:不
Switch 參數: projectenvironmentfolder
允許的值:包含 SSMA 專案環境檔案的有效資料夾名稱。
-p 或 securepassword
必要條件:不
切換論元與形式:
-a|add {<server_id> [,...n] | all} -c|serverconnection <server-connection-file> [-v|variable <variable-value-file>] [-o|overwrite]-a|add {<server_id> [,...n] | all} -s|script <script-file> [-v|variable <variable-value-file>] [-o|overwrite]-r|remove {<server_id> [, ...n] | all}-l|list-e|export {<server-id> [, ...n] | all} <encrypted-password-file>-i|import {<server-id> [, ...n] | all} <encrypted-password-file>
Notes:
- 不要把這個選項和其他選項混在一起。
-
server-id:你為伺服器提供的唯一 ID (string)。 -
server-connection-file: 伺服器定義檔案(serverconnectionfile 或 scriptfile)。 -
variable-value-file:一個用於server-connection-file的變數定義檔案。 -
encrypted-password-file:伺服器密碼檔案使用使用者指定的密碼短語加密。
-?
必要條件:不
切換參數:不適用
允許的數值:不適用