Import a Library from the Command Line

Import and automatically attach a library to the SQL Server. This action can be performed from the command line.

The server console command line can be used to import libraries.

  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

-Oimportlibrary

The operation being performed (required).

-NLibraryName

The database name of the library to import (required).

-DFdataFilePath

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

-DLlogFilePath

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

-ZIP

A switch that indicates the data file is a Zip file containing both the .mdf and .ldf files (required regardless if the file specified in the -DF switch ends with a .zip extension).

-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 -Oimportlibrary -N"Inventor Standard Content" -DF"c:\My Library Repository\Inventor Standard Content.mdf" -VUadministrator -VPadmin -DBUsername -DBPassword