Install, configure, manage, validate, and inspect Microsoft SQL Server
Source: target-root/usr/local/libexec/solidgroundux/manage-sqlserver.sh
Install, configure, manage, validate, and inspect Microsoft SQL Server
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_dryrun_complete | Report the dry-run result without executing the requested host change. | — | — |
_sqlserver_ask_selection | Display a numbered list and write the selected label to the caller-supplied output variable. | - $1: Prompt or display label. | — |
_sqlserver_ubuntu_version | Return the supported Ubuntu version. | — | — |
_sqlserver_validate_port | Validate a TCP port number. | — | — |
_sqlserver_engine_installed | Test whether SQL Server is installed. | — | — |
_sqlserver_tools_installed | Test whether sqlcmd tools are installed. | — | — |
_sqlserver_conf_get | Read one persisted SQL Server setting. | - $1: Configuration or response-field key. | — |
_sqlserver_tcp_port | Return the effective SQL Server TCP port. | — | — |
_sqlserver_storage_root | Resolve the configured SolidGroundUX storage root. | — | — |
_sqlserver_select_directory | Select or enter a SQL Server storage directory. | - $1: Prompt or display label. | — |
_sqlserver_ensure_directory | Create and prepare a SQL Server storage directory. | - $1: Filesystem path to inspect. | — |
_sqlserver_apply_conf | Set one mssql-conf value. | - $1: Configuration or response-field key. | — |
_sqlserver_restart_if_active | Restart SQL Server when it is currently active. | — | — |
_sqlserver_step_repository | Configure Microsoft SQL Server repositories. | — | — |
_sqlserver_step_install_engine | Install Microsoft SQL Server 2025. | — | — |
_sqlserver_step_configure | Run the canonical mssql-conf setup workflow. | — | — |
_sqlserver_step_install_tools | Install sqlcmd and bcp tools. | — | — |
_sqlserver_collect_install_configuration | Collect SQL Server edition, port and memory settings, review them together, | — | — |
_sqlserver_prepare | Run the complete SQL Server preparation sequence while returning a distinct | — | — |
_sqlserver_configure_storage | Configure SQL data, log, and backup directories. | — | — |
_sqlserver_configure_network | Configure the SQL Server TCP port. | — | — |
_sqlserver_configure_memory | Configure the SQL Server memory limit. | — | — |
_sqlserver_manage_service | Manage SQL Server service state and startup behavior. | — | — |
_sqlserver_configure_firewall | Allow the configured SQL Server port through UFW. | — | — |
_sqlserver_status | Show SQL Server status and effective configuration. | — | — |
_sqlserver_validate | Validate the SQL Server role. | — | — |
_run_action | Dispatch the requested management action to its implementation. | - $1: Management action to execute. | — |
Description
Install, configure, manage, validate, and inspect Microsoft SQL Server.
Usage
Run the executable from its shell command (or installed wrapper):
manage-sqlserver --action status
manage-sqlserver --dryrun --action storage
Script-specific options:
--action NAME,-a: Management action (supported actions:prepare,repository,install,configure,storage,network,memory,service,firewall,tools,validate,status).
