迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):fpco/odbc开源软件地址(OpenSource Url):https://github.com/fpco/odbc开源编程语言(OpenSource Language):Haskell 90.4%开源软件介绍(OpenSource Introduction):Haskell binding to the ODBC API, with a strong emphasis on stability, testing and simplicity. Platform and database supportThe following database drivers are tested against in CI:
The following operating systems are tested against in CI: How ODBC worksODBC is a C API that is split into a manager and a driver. On Windows, there is an ODBC manager that comes with the OS. On Linux and OS X, the unixODBC package provides the same functionality. Separately, for each database type, you have driver packages. When you provide a connection string, like this:
The How to connect to Microsoft SQL ServerIn recent years, Microsoft has released binary drivers for SQL Server for Windows, Linux and OS X, with a guide for each operating system. That guide for the latest and greatest official Microsoft driver is here. You can use the SQL Server docker image to easily run SQL Server anywhere in a few seconds. I have tested the OS X instructions on my own machine. This project's Dockerfile follows setup instructions for Linux, and the AppVeyor file follows the setup instructions for Windows. There is a test program that comes with the package called (Use
Check your package is workingYou can spin up a SQL Server in docker and connect to it with the
trivial binary
Common issuesCan't open lib 'ODBC Driver 13 for SQL Server'If you see an error like this:
Then you might be trying to use the wrong driver. You might have
installed version If it still says this, you might have to configure an odbcinst.ini file: [ODBC Driver 17 for SQL Server]
Driver = <driver_path> In Nix, this might be where <driver_path> is the result of evaluating
Which would need the following packages available:
Data source name not found and no default driver specifiedIf you see an error like this:
This is a terrible error message. If passing your DSN via a shell
environment variable or argument, check that your input string isn't
quoted e.g. Terminating with uncaught exception of typeIf you see an error like this on OS X with driver version 17,
use driver 13 or see here for more detail. Contributors
![]() |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论