Parameters for using configuration files

You can use the four parameters described below with configuration files.

Examples

Example 1 Performs validation checking on the values in the file srv.config and reads the parameters that pass validation into the server. Current run values are substituted for values that do not pass validation checking:

sp_configure "configuration file", 0, "read", "srv.config"

Example 2 Creates the file my_server.config and writes the current configuration values the server is using to that file:

sp_configure "configuration file", 0, "write", "my_server.config"

Example 3 Runs validation checking on the values in the file generic.config:

sp_configure "configuration file", 0, "verify", "generic.config"

Example 4 Writes configured values to the file restore.config:

sp_configure "configuration file", 0, "restore", "restore.config"