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

ccall: could not find function SQLDriversW in library #218

Closed
amillscampisi opened this issue Dec 6, 2018 · 2 comments
Closed

ccall: could not find function SQLDriversW in library #218

amillscampisi opened this issue Dec 6, 2018 · 2 comments

Comments

@amillscampisi
Copy link

amillscampisi commented Dec 6, 2018

Running Julia 1.0.2 on an Amazon Linux 2 EC2 with ODBC v0.8.1. I am usually Jupyter Lab as the IDE. After running the following code, I get the error below:

import Pkg
Pkg.build("ODBC")

import ODBC

ODBC.drivers()

ccall: could not find function SQLDriversW in library

Stacktrace:
[1] SQLDrivers at /home/ec2-user/.julia/packages/ODBC/KFiOK/src/API.jl:73 [inlined]
[2] drivers() at /home/ec2-user/.julia/packages/ODBC/KFiOK/src/ODBC.jl:75
[3] top-level scope at In[7]:1

@melonwannajack
Copy link

This happens if no driver is found. Had this issue when Dockerizing some code written in Julia, the issue is resolved by installing à driver at the machine.

@davygarg
Copy link

davygarg commented Jun 5, 2019

I am having the same issue .

ERROR: ccall: could not find function SQLDriversW in library

Stacktrace:
[1] SQLDrivers at /root/.julia/packages/ODBC/mb61L/src/API.jl:73 [inlined]
[2] drivers() at /root/.julia/packages/ODBC/mb61L/src/ODBC.jl:72
[3] top-level scope at none:0

Trying Julia to connect to MSSQL Database.

Update : Fixed the issue by installing SQL Drivers from Microsoft.

@quinnj quinnj closed this as completed May 23, 2020
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

No branches or pull requests

4 participants