Skip to main content

Metamart SQL Server Integration

The SQL Server integration synchronizes metadata from your SQL Server database into your Metamart data lineage graph.

Tests assume you have working installation of pyodbc and a supported ODBC driver installed on your host machine.

Installation Notes

Installing ODBC drivers can be particularly tricky on M1 machines. You'll need to install the unixodbc drivers through brew first

    brew install unixodbc

You can attempt installing pyodbc directly at this point though I was forced to set LDFLAGS and CPPFlags in my bashrc/zshrc file, i.e.

export LDFLAGS="$LDFLAGS -L$(brew --prefix unixodbc)/lib"
export CPPFLAGS="$CPPFLAGS -I$(brew --prefix unixodbc)/include"

At this point you should be able to pip install pyodbc successfully and import the package from within python. However, you'll still require an ODBC driver in order to connect with an MS SQL server. There are multiple options for potential drivers but ODBC 18 from Microsoft has worked in testing.

brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
HOMEBREW_ACCEPT_EULA=Y brew install msodbcsql18 mssql-tools18

If you continue to experience issues you might try creating these symlinks below.

sudo ln -s /opt/homebrew/etc/odbcinst.ini /etc/odbcinst.ini
sudo ln -s /opt/homebrew/etc/odbc.ini /etc/odbc.ini

When installing locally, if you get an error like ImportError: dlopen(/opt/homebrew/lib/python3.11/site-packages/pyodbc.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace (_SQLAllocHandle), you can try uninstalling pip uninstall pyodbc and then reinstall with build pip install --no-binary :all: pyodbc.

Metadata

Release files for metamart_source_mssql 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metamart_source_mssql 0.1.3
File Size Uploaded
metamart_source_mssql-0.1.3.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metamart_source_mssql 0.1.3
File Interpreter ABI Platform
metamart_source_mssql-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / metamart_source_mssql-0.1.3.tar.gz

Download URL metamart_source_mssql-0.1.3.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ea7f6a3ebcaebb2ba5e81a2f1971e6a3a258145780a6db1ce4b704f786450071
BLAKE2b-256 checksum
How to use checksums
2be86993952e597e09b3654dda8c0479baac5436cb854f664b319ed1cf0b0d02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.10 Darwin/22.1.0

Release files / metamart_source_mssql-0.1.3-py3-none-any.whl

Download URL metamart_source_mssql-0.1.3-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f08ad9ec883b4caabac5fe01fb234012661219b9657edaa5619f923fdcc4d08
BLAKE2b-256 checksum
How to use checksums
56dfa5c8194db1d2f39b08733eda89992dd33470d23cacda46429265a38ab8a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.10 Darwin/22.1.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page