Skip to content

Add MS SQL Server support #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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