Unload Specs

Version: This material pertains to version 3.0 of Blackbaud CRM SDK.

You can use the LoadSpec utility to remove Infinity catalog specs from an Infinity installation. When you install the Infinity SDK, UnloadSpec is installed into Visual Studio as an external tool. It is accessible from the Tools menu. However, you can also install UnloadSpec into a Visual Studio instance manually if necessary. For instructions about how to install or configure UnloadSpec, see Install or Configure LoadSpec.

Warning: The UnloadSpec external tool is intended to help SDK developers work on features in a development environment. It is not intended as a mechanism to unload specs that were previously shipped or that were deployed to a production environment.

The UnloadSpec external tool includes a "/U" command line switch to invoke a CLR stored procedure in an Infinity database called USP_UNLOADSPEC to remove specs. Unlike the LoadSpec operation, the USP_UNLOADSPEC stored procedure does not require the entire XML for the spec. It only needs the spec type and the catalog ID.

With UnloadSpec, you can remove the current spec from a catalog. Arguments for LoadSpec.exe enable you to specify behavior such as whether to consider dependencies when removing specs and which database to use. For a table of arguments and descriptions, see LoadSpec Arguments.

The command line usage is:

loadspec.exe /s=<servername> /db=<db name> /spec=<catalog spec XML file> /u

Some spec types do not support the UnloadSpec functionality. These include: