Skip to content

Conversation

@dfalbel
Copy link
Contributor

@dfalbel dfalbel commented Nov 26, 2025

Addresses #10433

Support for MSSqlServer trough pyodbc and pymssql

Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

QA Notes

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

@dfalbel dfalbel force-pushed the connections/sqlserver branch from f7b3f89 to bc1efef Compare November 27, 2025 19:27
@dfalbel dfalbel marked this pull request as ready for review December 2, 2025 16:32
@dfalbel dfalbel requested a review from Copilot December 2, 2025 16:32
Copilot finished reviewing on behalf of dfalbel December 2, 2025 16:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds SQL Server support to the Connections Pane through both pyodbc and pymssql drivers. The implementation follows established patterns from other database connections (Snowflake, BigQuery, Databricks) and includes comprehensive test coverage.

Key Changes

  • Implemented SQLServerConnection class with support for both pyodbc and pymssql drivers
  • Added helper function _is_pyodbc_sqlserver() to detect SQL Server connections via pyodbc
  • Created comprehensive test suite with base test class and driver-specific implementations
  • Added package dependencies for pymssql and pyodbc to test requirements

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
connections.py Added SQLServerConnection class implementing database/schema/table hierarchy navigation, field listing, and preview functionality with proper SQL identifier escaping
test_connections.py Added test infrastructure including connection helper functions, base test class _SQLServerConnectionsTestBase, and two driver-specific test classes
pinned-test-requirements.txt Added pymssql==2.3.10 and pyodbc==5.3.0 with Python version constraints

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Daniel Falbel <dfalbel@gmail.com>
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.

2 participants