Skip to content
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

Support SQL Server Data Source #52

Closed
adam133 opened this issue Jul 28, 2021 · 4 comments
Closed

Support SQL Server Data Source #52

adam133 opened this issue Jul 28, 2021 · 4 comments
Assignees
Labels
connection enhancement New feature or request
Milestone

Comments

@adam133
Copy link

adam133 commented Jul 28, 2021

Is your feature request related to a problem? Please describe.
I'd love to give CueObserve a try but our warehouse is currently in MS SQL Server.

Describe the solution you'd like
Add SQL Server as a supported data source.

Additional context
I'd be interested in making the necessary pull request, but I'd like some high level advice on what might be needed.

Is it as simple as adding the necessary sqlserver.py in https://github.com/cuebook/CueObserve/tree/main/api/dbConnections ?

@vikrantcue
Copy link
Contributor

vikrantcue commented Jul 28, 2021

Yes @adam133 it should be simple enough. Please follow the following steps to add SQL Server support:

  1. Add the SQL Server connection type in seed data here: https://github.com/cuebook/CueObserve/blob/main/api/seeddata/connectionType.json
  2. Add the required params to connect with SQL Server here:
    https://github.com/cuebook/CueObserve/blob/main/api/seeddata/connectionParam.json
  3. Add the necessary sqlserver.py in https://github.com/cuebook/CueObserve/tree/main/api/dbConnections. You can connect to SQL Server using pandas so you don't need to add any additional drivers.

@adam133
Copy link
Author

adam133 commented Jul 30, 2021

@vikrantcue Running into some issues getting a MSSQL driver configured - I always have trouble with Linux SQL Server drivers. I'm not sure what you mean by saying that pandas has them built in - as far as I can tell it still needs a compiled DBAPI for MSSQL of some kind to connect.

Additional modifications I found that are needed:

I don't have any of that functioning yet, just wanted to post an update on my findings.

@vincue
Copy link
Contributor

vincue commented Aug 1, 2021

Hi @adam133, pandas has read_sql function to connect to various servers, please try this for connecting MSSQL to pandas dataframe.

@sachinkbansal sachinkbansal added this to the v0.2 milestone Aug 4, 2021
@sachinkbansal
Copy link
Contributor

@adam133 a few others are asking for SQL Server support. Our team would be happy to pick this up, so that we can make it available in our next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connection enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants