question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mssql connector raises the error with generate-dataset

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasLaPianacommented, Feb 1, 2022

@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!

0reactions
iokamoto-smcommented, Jan 31, 2022

@ThomasLaPiana , yes, it does have - hyphen like mt1-db-sm-accountsnew.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found