Skip to content

Conversation

ads40
Copy link

@ads40 ads40 commented Apr 16, 2025

Now that version 1.0.510 supports SQL backends, we should be able to target a MS SQL Server DB in addition to other SQL backends.

  • Add a sql_template.yml with suitable template values for connecting to MS SQL Server and with modified CREATE TABLE specifications for holding Boolean values in a suitable SQL Server data type.
  • Add a fix to credentials-db-sql.R, with logic that is identical to the previous fix for MariaDB, to allow R logical values to be written back via casting into a MS SQL Server bit data type.

ads40 added 2 commits April 16, 2025 16:23
Add a template for Microsoft SQL Server with appropriate modifications for the connection variables and modified SQL statements to set up compatible SQL Server tables.
Workaround for handling of R logical values into SQL Server BIT fields. Logic identical to fix for MariaDB: value needs to be numeric 0 or 1 for type cast compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant