Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SQL VDB 2.0 and later includes a new command line interface (CLI) that offers new functions and replaces the previous Map Generation utility.

If you are upgrading from SQL VDB 1.x to SQL VDB 2.0 or later, you must update any SQL jobs that use the previous SQLvdbCLI commands. Starting with SQL VDB version 2.0, all SQLvdbCLI commands have been obsoleted.

...

Info

SQL VDB CLI actions and options are not case-sensitive.

Update jobs that call the Map Generation utility

The Map Generation utility was used with SQL VDB versions 1.x. This utility has been replaced by the Map Generation CLI action that is included with the SQL VDB CLI.

For each job that calls the Map Generation utility, update your code to use the Map Generation CLI action instead:

...

  1. Save the job, and then run it manually to validate that it completes as expected.

Update grooming jobs

You can use SQL Server SQL Server Agent jobs to groom (delete) unused data files associated with your virtual databases.

For each job that grooms virtual data files, update your code to use the new CLI action:

  1. Use Microsoft Management Studio to edit the job.
  2. Find and delete this code:
    sqlvdbcli -Cleanup
  3. Enter this new code:
    sqlvdbcmd Cleanup
  4. Save the job, and then run it manually to validate that it completes as expected.

Update jobs that restore backups as virtual databases

You can use SQL Server Agent jobs to prepare backup files for future restoration as a virtual database.

For each job that creates virtual databases, update your code to use the new CLI action:

  1. Use Microsoft Management Studio to edit the job.
  2. Find and delete this code:
    sqlvdbcli -Create -Database MyNewVirtualDB -Full MyFolder\MyBackupFiles\Name.bak -InstanceName TargetServer -WindowsUsername targetdomain\account -WindowsPassword password
  3. Enter this new code:
    sqlvdbcmd Create VirtualDatabaseName MyFolder\MyBackupFiles\Name.bak -WindowsUsername targetdomain\account -WindowsPassword password
  4. Save the job, and then run it manually to validate that it completes as expected.

...