mssql connector raises the error with generate-dataset
See original GitHub issueBug Description
This is probably the issue with pyodbc configuration. I followed the install from docker and installed fidesctl with mssql connector so I can test fidesctl generate-dataset command against SQL Server. It failed with IM002 error.
Steps to Reproduce
git clone https://github.com/ethyca/fides.git
git switch --detach 1.2.0
cd fides
make build
docker tag ethyca/fidesctl:<tag> ethyca/fidesctl:local
fidesctl generate-dataset mssql+pyodbc://<username>:<password>@<server>:<port>/<database> test.yml
Database connection failed with engine:
Engine(mssql+pyodbc://<username>:***@<server>:<port>)!
(pyodbc.InterfaceError) ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
Expected behavior
It is expected to produce test.yml from the database.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
- Version: 1.2.0
- OS: Mac OS X 12.1
- Python Version: 3.8.5
- Docker Version: 20.10.8
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error message when you connect to SQL Server
This error occurs when you try to make an encrypted connection to SQL Server using a non-verifiable certificate. This could happen in the ......
Read more >Error when connect database continuously - Stack Overflow
An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider...
Read more >node-mssql | Microsoft SQL Server client for Node.js
Connection health check is built-in so once the dead connection is discovered, it is immediately replaced with a new one. IMPORTANT: Always attach...
Read more >Microsoft SQL Server - SQLAlchemy 1.4 Documentation
Support for the Microsoft SQL Server database. ... return NULL or raise an error if they are not used against the correct expected...
Read more >Debezium connector for SQL Server
Kafka topics are deleted and must be rebuilt. Data corruption occurs due to a configuration error or some other problem. You can re-run...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@iokamoto-sm understood, it will create a key from the hostname as well. It sounds like the easiest way forward here is to expand the fides_key allowed characters to include a hyphen, that should solve this problem and I think you definitely aren’t the only person that will want to use hyphens!
@ThomasLaPiana , yes, it does have
-
hyphen likemt1-db-sm-accountsnew
.