What’s New #
Starting in 1.31, the application can update itself by running sqldsc update.
1.44 (29 August 2025) #
- Improvements to linked servers
- Improve config file structure for named instances
- Queries process in parallel
- Query Store better handles setting sizes across different files
sp_configureusesvalueinstead ofvalue_in_use- Can specificy connection protocols including TCP/IP, named pipes, and local process
- Add
agent_alertresource block
1.43.16 (15 October 2023) #
- Improve SQL Server 2022 support
- Improve support for SQL Server in containers
- Block dropping the
salogin or the active login - Improve support for Express Edition by skipping more agent settings
- Initial support for linked servers
- Add support for encrypted credentials in the config repository
- Fix: Query Store only updates writable databases
1.43.9 (7 April 2023) #
- Upgraded to a newer version of GO
1.43.7 (11 October 2022) #
sqldsc report usagedisplays a simple report showing many changes have been madesqldsc report serversshows the total changes per server- PRO:
sqldsc retireallows a server to be retired and no longer consume a license
1.43.6 (8 October 2022) #
- PRO: Querying now supports
--sort field,--descending, and--top nparameters - Better handle configuring databases that will be created
- Improved handling of the HTTP proxy
1.42.16 (19 May 2022) #
- PRO: Target
rolesare now targettags. See the Tags section for more details.
1.42.15 (12 May 2022) #
- Better handling of nested roles. Run
sqldsc listto see all the targets and roles. - Better handling of missing databases in
loginblocks. If a database specified in a login block doesn’t exist, it is skipped. This is helpful for databases likeSSISDBthat are system databases but rarely exist. - Added a domain map so that targets can remember what domain they are in. This helps with filtering for queries and such.
1.42.7 (18 November 2021) #
- The
expected_rowshandling is improved for SQL Scripts. Please see the documentation.
1.42.6 (8 November 2021) #
- Update license file location
- Queries support multiple directories. Please see the docs.
- Executing queries no longer requires the
.sqlextension allowing a shorter syntax. For example,sqldsc query dbountrunsdbcount.sql.
1.42.3 (14 September 2021) #
- A
loginresource block forsadefaults toalterso we don’t try to create thesalogin in an Azure SQL Database. - A
databaseresource block formodeldefaults toalterso we don’t try to create themodeldatabase in an Azure SQL Database. agent_jobnow defaults to being owned bysaif not specified on creation. This seems like a more reasonable default.
1.41.9 (13 July 2021) #
- PRO Edition now requires a license downloaded from portal.sqldsc.com
- Added Proxy Server Support for application updating and PRO licensing
- Added documentaion on Privacy and Proxy Server Support
- The PRO Edition includes beta support for running a raw SELECT query against each target.
1.40.7 (8 June 2021) #
- Job schedules can now have their start time “jittered” so they don’t all start at the same time. Please see Agent Resource Blocks
databaseresource blocks can now set the database compatibility level. A value of -1 matches the server version.- We’re getting close to real, actual licenses so PRO features expire 60 days after the build date.
- Renamed the
sids.0.csvfile that holds the login-SID mapping tosids.sidmap. This will let me do things withgitand CSVs later. - Logging SQL statements now captures the database name
- Improved handling of
EXECvs.EXECUTEinGRANTstatements SSISDBis considered a system database (i.e. not a user database)sql_scriptblocks now require the PRO Edition
1.40.2 (23 May 2021) #
- New databases default to being owned by
saunless an owner is specified - Updated
server_list.ndjsonto include a hash has that will be used in licensing
1.40.1 (22 April 2021) #
- Added
for_versionsfilter for resource blocks. Please see PRO: Filter for Versions for details. - Improved various messages
- The app writes a
server_list.ndjsonfile to log all servers tested in thestatedirectory
1.39.4 (13 April 2021) #
- BREAKING CHANGE: How roles are processed has changed. Please see Roles.
- Roles now support nesting. This allows a role to include additional roles. For example, an Availibility Group role can include all the needed roles rather than defining them for each node.
- Case-sensitive servers now pass the full standard test suite but there a limited tests for case-sensitivity. Please report any errors using the scaleSQL Contact Form
sqldsc initnow creates therolesdirectorysqldsc listlists all the targets and their roles after applying filters
1.38.4 (4 April 2021) #
- Early support for case-sensitive servers and databases
1.38.1 (10 February 2021) #
loginblocks allow adefault_schemato be set fordatabaseanduser_databasesblocks.
1.37.18 (6 February 2021) #
- Minor formatting fixes
1.37.17 (20 December 2020) #
- Worked on fixing the
infocommand to handle the new parsing code.
1.37.15 (16 November 2020) #
- Improved SQL Server Agent job schedules and steps including weekly jobs
- Can
capture_outputof job steps - Made field names for Logins consistent in
loginblocks - Added
agentresource block to set job history step retention
1.37.11 (11 November 2020) #
- Resource blocks now merge instead of overwriting previous blocks. Please see Resource Block Precendence
- Added
user_databasesblocks to the PRO Edition - Added
loginblocks to the PRO Edition - Added
variablesto the PRO Edition
1.36.2 (10 October 2020) #
- BREAKING CHANGE: How roles are processed has changed. Please see Roles
1.35.1 (18 September 2020) #
- Improve handling of resource blocks
- Breaking changes to
server_role_memberandserver_permissionschemas. Please see Resource Block Schema
1.35 (14 September 2020) #
- Add support for schemas
- Add support for schema permissions
1.34 (10 September 2020) #
- Start support for Azure “SQL Databases”. Please see the Azure section. Only those resources listed in the Azure section have been tested against Azure SQL Databases.
- Add limited support for SQL Server Agent Jobs. Please see the Resource Block Schema section.
- Add support for Database Roles. Please see the Resource Block Schema section.
1.32.5 (4 July 2020) #
- The application logging format has changed to make it easier to read. Please install the NDJSON Colorizer to better view the logs. There’s also a way to dump logs for inclusion in change control documents. See Logging
- Targets support SQL Server logins. Please see the section on Targets
- Targets can define
roleswhich override the default Roles oradded_roleswhich add to the default Roles. Please see Roles for more details. - Both test and apply stop processing on errors. Originally they would stop the current target but process other targets. However the safest action is to stop immediately if there’s a problem. If the
testis running multi-threaded, each thread will finish its target but won’t start new a one. - Testing a password in the Vault can test both passwords and password hashes.
1.32.2 (22 June 2020) #
- Improved handling of SQL Server logins. See SQL Server Logins for details.
- Capture and reuse SIDs
- Store hashed passwords in the Credential Vault
- Get the SID and hashed password from an existing login
- If a database isn’t writable, any changes for that database are silently skipped.
1.31.2 (19 June 2020) #
- The application checks if a user is in the
sysadminrole. If they are not, the target is skipped. This better supports running with two different accounts. - The PRO edition can configure the multi-threaded settings using a settings file. Please see the Application Settings section.
- The application can update itself by running
sqldsc update. If there is a newer version, it will prompt you to install it. sqldsc initwill create a.vscodedirectory with the suggested extensions.
1.31 (31 May 2020) #
- Add a
--parallelflag for the PRO. This sets the number of testing threads equal to the number of targets. Applying is always done sequentially.
1.27 (5 May 2020) #
- Better permissions when you init a new directory structure
- Improved error handling and reporting
1.26 (4 May 2020) #
- Previously, when running,
sqldsc apply, all servers are first tested, then all servers go through the apply phase. Now, only those servers that indicate a change will go through the apply phase. This can be overridden with the--applyallflag. This flag forces all servers to go through the apply phase. - If the PRO features are enabled (see the README_Pro), the
--threadsflag will allow you to set the number of concurrent threads that will be used for the test phase. The apply phase is always done single-threaded.
1.25 (28 April 2020) #
sqldsc infoprints a summary table that lists the target files and target counts and the resource files and resource counts
1.24.1 (26 April 2020) #
- Logging is now is written to individual files in a dir tree: YYYY/sqldsc_YYYY_01_Domain_User.log. This should prevent duplicates and eliminate the need to merge files.
1.23 (24 April 2020) #
- Cleaned up logging. There are now three levels that provide increased detail: Verbose, then Debug, then Trace. Verbose is really just printing the SQL statements.
- Add
expected_rowsto thesql_scriptresource. If thetest_queryreturns a different number of rows than this, the script will be run. - Add properties for
targetfor dial timeout and connect timeout. - Add a
target_defaultsblock to set defaults for all targets in the file.
1.22 (22 April 2020) #
- Resource Blocks now overwrite previous definitions. Prior to this they would be merged. It’s just too complicated to figure out where different settings come from in files. For example, assume you define a database resource for a “DBA” database in defaults.hcl. Then in a node-specific configuration file, you define a “DBA” database with a different set of properties. The later more specific resource will now completely overwrite the newer resource. That newer resource will then be applied to the database.
1.21 (19 April 2020) #
- Assorted bug fixes and package updates
1.20.1 (17 April 2020) #
- Add an
object_permissionresource to set permissions on database objects
1.18 (12 April 2020) #
- The
sql_fileresource has been renamed tosql_script. Please rename thesqldirectory directory toscripts. The attribute names have also changed. Please see the schema document. - If no
ensureattribute is found, default topresent. - For logins, if no
nameattribute is found, default to the Resouce Name. - For agent operators, if no
nameattribute is found, default to the Resouce Name. - For databases, if no
nameattribute is found, default to the Resouce Name. - For configurations, if no
nameattribute is found, default to the Resouce Name.
1.17 (9 April 2020) #
- Add
database_permissionresource blocks - Fix messages on existing user when changing database owner
- Generate error if the same resource is defined twice in a single file
- Moved the Resource Block schema to a separate document
- In the
sql_fileresource, the file name is justfileinstead offile_name
1.16 (4 April 2020) #
- Add
database_role_memberresource blocks - Clean up attribute names so that a “_name” suffix isn’t requried for SQL Server objects such as logins and roles
1.0.15 (24 March 2020) #
- Add
vaultto store encrypted passwords locally - Add attributes to the
loginresource including the SID, expiration check, policy check, and default database. - Add a
sql_fileresource to create common procedures or objects on servers - Add
database_userresource - Add syntax check for .hcl files at the start of processing
- Switched SQL Server drivers. If you experience connectivity issues, please contact me
1.0.14 (15 March 2020) #
- Moved the audit logs to a
logsdirectory - Allow single backslashes in server and login names
- A Test is run before Applying unless you specify the –confirm flag
1.0.12 (14 March 2020) #
- The message and SQL script are printed before executing
- Important strings are trimmed
- Switched the instance filter to a target filter
1.0.11 (8 March 2020) #
- Add
server_role_memberresource - Add domain filtering for Professional edition
- Add domian targets for Professional edition
- Switch to
defaults.hcl
1.0.10 (3 March 2020) #
- Add role filtering for Professional edition
- Add instance filtering