Manage SQL Server

SolidGroundUX DocumentationSolidGroundUX
NL

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
FunctionPurposeArgumentsOutput
_dryrun_completeReport the dry-run result without executing the requested host change.——
_sqlserver_ask_selectionDisplay a numbered list and write the selected label to the caller-supplied output variable.- $1: Prompt or display label.—
_sqlserver_ubuntu_versionReturn the supported Ubuntu version.——
_sqlserver_validate_portValidate a TCP port number.——
_sqlserver_engine_installedTest whether SQL Server is installed.——
_sqlserver_tools_installedTest whether sqlcmd tools are installed.——
_sqlserver_conf_getRead one persisted SQL Server setting.- $1: Configuration or response-field key.—
_sqlserver_tcp_portReturn the effective SQL Server TCP port.——
_sqlserver_storage_rootResolve the configured SolidGroundUX storage root.——
_sqlserver_select_directorySelect or enter a SQL Server storage directory.- $1: Prompt or display label.—
_sqlserver_ensure_directoryCreate and prepare a SQL Server storage directory.- $1: Filesystem path to inspect.—
_sqlserver_apply_confSet one mssql-conf value.- $1: Configuration or response-field key.—
_sqlserver_restart_if_activeRestart SQL Server when it is currently active.——
_sqlserver_step_repositoryConfigure Microsoft SQL Server repositories.——
_sqlserver_step_install_engineInstall Microsoft SQL Server 2025.——
_sqlserver_step_configureRun the canonical mssql-conf setup workflow.——
_sqlserver_step_install_toolsInstall sqlcmd and bcp tools.——
_sqlserver_collect_install_configurationCollect SQL Server edition, port and memory settings, review them together,——
_sqlserver_prepareRun the complete SQL Server preparation sequence while returning a distinct——
_sqlserver_configure_storageConfigure SQL data, log, and backup directories.——
_sqlserver_configure_networkConfigure the SQL Server TCP port.——
_sqlserver_configure_memoryConfigure the SQL Server memory limit.——
_sqlserver_manage_serviceManage SQL Server service state and startup behavior.——
_sqlserver_configure_firewallAllow the configured SQL Server port through UFW.——
_sqlserver_statusShow SQL Server status and effective configuration.——
_sqlserver_validateValidate the SQL Server role.——
_run_actionDispatch 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).