Query Pilot Login Clone

Login clone preview scripts one or more server logins from repository inventory and can queue the result into Deploy.Code.

Open it from Objects > Security / Logins by right-clicking a login, login group, or the Logins folder and choosing Clone/script logins. The object-browser server is the source collection. The target picker on the left controls which destination servers receive the script.

Pickers

  • Logins chooses which source logins are scripted. Opening the dialog from a single login checks that login, but the list still shows the other logins from the same source so they can be added.
  • Targets chooses the destination servers. If no target is checked, Query Pilot previews against the source server.

Options

The option strip is split into two groups:

  • Content controls which Clone.LoginScripts rows are included.
  • Script controls how the returned SQL is shaped.

Content options:

  • Logins includes login creation, server-role, and server-level permission rows where StmtLevel = Server.
  • DB perms includes database users, roles, object permissions, and database-level permissions from non-server rows.

Script options:

  • Password hash keeps SQL login password hashes when the repository has them. If unchecked, Query Pilot replaces the hash with a password placeholder.
  • SID keeps captured SQL login SIDs. If unchecked, Query Pilot strips the SID clause.
  • IF EXISTS keeps IF NOT EXISTS wrappers on create statements and IF EXISTS wrappers on drop statements.

Script Tabs

  • Create statements shows Stmt rows.
  • Drop statements shows NegativeStmt rows.
  • The footer uses the standard <SQL> affordance. Use Copy query to copy the repository query that read Clone.LoginScripts.

Generated SQL, password hashes, raw SIDs, and SQL passwords are not written to support bundles.

Scheduling

The Scheduling tab queues the selected create or drop script into Deploy.Code. The normal Deploy job executes rows when they are ready.

Schedule fields:

  • Category labels the Deploy.Code rows.
  • Script chooses whether the Create or Drop script is queued.
  • Begin push and End push define the run window.
  • Retries and retry frequency define retry behavior.
  • Alert on failure can raise a deploy-failure alert with Warn or Crit severity.

Support events record source server, selected login count, selected target count, option flags, script mode, category, Deploy.Code row count, elapsed time, and failure metadata. They do not include generated SQL text, password hashes, SIDs, or passwords.

Related: Query Pilot Objects, Query Pilot feature inventory, Deploys.

Documentation revision: 131D89F70DDF552F