Attach a Library from the Command Line

Attach libraries to the SQL server from the command line.

  1. Make sure no users are connected to the vault.
  2. Run Connectivity.ADMSConsole.exe from a command line with the following switches:

Command

Details

-Oattachlibrary

The operation being performed (required).

-NLibraryName

The database name of the library to attach.

-DFdataFilePath

The path to the data file being attached, including the name of the file (required).

-DLlogFilePath

The path to the log file being imported, including the name of the file (required).

-VUusername

Vault administrator account user name (required).

-VPpassword

Vault administrator account password (required).

-DBUsaUser

The SQL sa account user name (required unless default sa account is used).

-DBPsaPassword

The SQL sa account password (required unless default sa account is used).

Example

Connectivity.ADMSConsole.exe -Oattachlibrary -N"Inventor Standard Content" -DF"c:\My Library Repository\Inventor Standard Content.mdf" -VUadministrator -VPadmin -DBUsername -DBPassword