odbc-driver | ODBC Driver to interactive with Kylin Engine | Database library
kandi X-RAY | odbc-driver Summary
kandi X-RAY | odbc-driver Summary
ODBC Driver to interactive with Kylin Engine. Download driver exe at Folder and their contents are listed. This will give you can an idea of what to find where. More details are available in the CPP files of the respective projects. The projects have been built using Visual Studio 2012. The entry of the project is KylinODBC.sln. Mind the VS version. Make sure you have the following header files, import libraries and DLLs on your system 1. SQL.H 2. SQLTYPES.H 3. SQLEXT.H 4. ODBCINST.H 5. ODBC32.LIB & ODBC32.DLL 6. ODBCCP32.LIB & ODBCCP32.DLL. You can obtain these from Microsoft site as a part of Platform SDK or MDAC kit.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of odbc-driver
odbc-driver Key Features
odbc-driver Examples and Code Snippets
Community Discussions
Trending Discussions on odbc-driver
QUESTION
I need a simple ODBC test scenario on WIN which I can configure very simply and be assured it is working in support of another question at Unix.SE.
In a nutshell I'm trying to setup a PyODBC/Python script connection from Debian 10 (192.168.1.2) to Windows 10 in KVM/QEMU virtual system (192.168.1.12).
First, on the Windows 10/KVM, I see the ODBC Data Source Administrator
has a tab File DSN
and Microsoft Text Driver
. Can I use FileDSN to test Python PyODBC connection to ODBC using a simple CSV file in place of Server?? (My research with ODBC only finds running server instances).
Next, what I tried:
On Debian I installed ODBC Microsoft driver for Linux.
Shutdown the Windows 10 firewall, and I can ping in both directions:
$nmap -p 22 192.168.1.12
# Deb to Win> Test-NetConnection 192.168.1.2 -p 22
# Win to DebOn Windows 10/KVM I added a FileDSN with Microsoft Text Driver. I created a CSV file (
odbc_test_01.csv
) with simple header and one row of data (IE.{'ID' : 1, 'NAME' : 'FOO'}
)Created a Jupyter Notebook to make testing easier. Here is my connection string and the results:
...
ANSWER
Answered 2021-May-02 at 13:25An ODBC "File DSN" is not a driver for accessing data in a file. It is a way to specify a DSN (connection information for a target database) as values in a standalone file instead of in a standard configuration file on Linux (e.g., /etc/odbc.ini
) or in the Windows registry.
If you need to "clone" a Windows DSN entry for use in a Linux environment then you may find my dump_dsn utility helpful. It retrieves an ODBC DSN from the Windows registry and presents it in a form that you could use to recreate the DSN on Linux.
For example, say I had a DSN named "mssql199" on Windows and when I ran dump_dsn.to_text("mssql199")
on it I got
QUESTION
I'm trying to get a Laravel Sail Docker to be compatible with sqlsrv (MSSQL). I've come a long way with the config and got it to install sqlsrv and the pdo_sqlsrv. So now I need to install msodbcsql17. For that I'm following the microsoft guide (https://docs.microsoft.com/nl-nl/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15) for Ubuntu 20.04 (as that is my version).
That specific documentation says to download and run. Translating that to the Sail Dockerfile, that part of my Dockerfile looks like this:
...ANSWER
Answered 2021-May-21 at 06:34By default most docker images have an empty package lists to save on image size. This is why you need to apt-get update
first. This will not update any software (that would be apt-get upgrade
) but just updates the package list. The command is actually also in Microsoft's instructions you linked.
QUESTION
I'm building a WebApp with a SQL DB as Backend. I'm Deploying the both parts on Azure, as Azure Webapp and SQL Server.
The SQL server is sercured with Azure AD (AAD). So only Users in a Group can access the DB.
So I'm trying to setup a workflow where the Webapp login the user and collect his Access token. And then uses the token to Query the SQL server.
I've registreted the App in AAD, where it is authorized to read the user ID and impersonate as the user.
I've the following code which is working local. But I can't get it to work deployed locally in a Docker Image.
...ANSWER
Answered 2021-May-17 at 16:06Connecting to SQL Server with an OAuth token requires use of a pre-connection attribute (basically a pointer to the token string). There is an open feature request at the odbc Github repo for this. I encourage you to upvote it, hopefully if it's popular enough it will get implemented.
QUESTION
Please help me....
I've created a web server using OS Debian 10, Nginx and PHP7.3 and everything is running well. but when it will connect to the sql server, it cannot connect.
I've done several tutorials such as:
pecl install sqlsrv pdo_sqlsrv
Follow steps mentioned on https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15
File .ini driver
root@debian:~# ls /etc/php/7.3/fpm/conf.d/*sqlsrv.ini /etc/php/7.3/fpm/conf.d/20-sqlsrv.ini /etc/php/7.3/fpm/conf.d/30-pdo_sqlsrv.ini root@debian:~#
so please help me to solve this problem, Thank you Very Much
...ANSWER
Answered 2021-Feb-18 at 18:03If you are having issues with the client on Debian 10 with OpenSSL1.1.1 the fix is to revert to the previously default weaker key length. To do so:
Modify
QUESTION
I am using library upeg/sybase 2.1. when I am upgrading laravel 8 , i am getting below error. How can I resolve this error?
Getting error while applyig command composer update
composer.json
...ANSWER
Answered 2021-Feb-03 at 07:06use latest version
try "uepg/laravel-sybase": "^2.4.0"
then run composer update
or
QUESTION
Below error I'm getting while connecting sybase with laravel.
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20190902/pdo_mysql (/usr/lib/php/20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_mysql.so (/usr/lib/php/20190902/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20190902/pdo_mysql (/usr/lib/php/20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_mysql.so (/usr/lib/php/20190902/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_oci' (tried: /usr/lib/php/20190902/pdo_oci (/usr/lib/php/20190902/pdo_oci: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_oci.so (/usr/lib/php/20190902/pdo_oci.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_oci' (tried: /usr/lib/php/20190902/pdo_oci (/usr/lib/php/20190902/pdo_oci: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_oci.so (/usr/lib/php/20190902/pdo_oci.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_odbc' (tried: /usr/lib/php/20190902/pdo_odbc (/usr/lib/php/20190902/pdo_odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_odbc.so (/usr/lib/php/20190902/pdo_odbc.so: undefined symbol: pdo_parse_params)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_odbc' (tried: /usr/lib/php/20190902/pdo_odbc (/usr/lib/php/20190902/pdo_odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_odbc.so (/usr/lib/php/20190902/pdo_odbc.so: undefined symbol: pdo_parse_params)) in Unknown on line 0
I edited php.ini file.
using below dependency in composer.json
...ANSWER
Answered 2020-Nov-08 at 17:03Error says it is because of pdo_mysql. I solved the problem this way:
QUESTION
I'm trying to build a custom docker container using the RHEL 8 UBI. As part of this I want to install the MSSQL 17 ODBC driver. I've followed the steps outlined in Microsofts Documentation here: https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#redhat17
And added the Microsoft repo to my yum.repos.d
directory however when I try to build the container I get the following error: nothing provides e2fsprogs needed by msodbcsql17-17.6.1.1-1.x86_64
When I dug a bit further into this it looks as though it looks as though for RHEL-7 Microsoft suggest installing e2fsprogs manually you can see that here: https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#offline-installation
This unfortunately isn't possible in RHEL-8 as e2fsprogs-static has been removed: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index#removed-packages_changes-to-packages
The full output from the build is:
...ANSWER
Answered 2020-Aug-05 at 10:46I found a work around that I hope will help the next person to hit this.
Rather than running yum install -y msodbcsql17
I instead used yum to download the RPM
yum download -y msodbcsql17
then used rpm -Uvh --nodeps msodbcsql17*rpm
to install it.
You can use this docker file:
QUESTION
i am getting filenot found error in pandasaccess
MDB tools are also not working
mdb-tables : The term 'mdb-tables' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + mdb-tables .\Classes\Test-results.mdb
Pyodbc is working only on win 32 bit
similar one here How to read from a 32 bit .mdb with 64 bit python and odbc driver
But still no answer for both
...ANSWER
Answered 2020-Jun-16 at 13:51pandas_access is a thin wrapper around MDBTools and MDBTools is really only intended for non-Windows platforms.
If you want to use pandas to work with an .mdb file in 64-bit Python under Windows then you need to install the 64-bit version of the Access Database Engine and use the sqlalchemy-access dialect for SQLAlchemy.
QUESTION
I'm trying to set up SQL Server backend for airflow. But getting this timeout error, when I do airflow initdb
:
sqlalchemy.exc.OperationalError: (pyodbc.OperationalError) ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
My connection string in airflow.cfg
looks like:
ANSWER
Answered 2020-Jun-09 at 14:15I'd look to your connection string.
For a start there's a typo in the example you've given a comma before defining your PORT
variable.... but it looks like there's a different shape to connection strings based on your chosen SQL Server driver. And you look like you are using pymssql format rather than pyodbc despite using the ODBC driver.
From SQLALchemy docs https://docs.sqlalchemy.org/en/13/core/engines.html#microsoft-sql-server
QUESTION
I have a problem, very very picky.
I have a LAMP server which is connected to an IBM i (AS400) throught unixODBC. PHP execute sql on IBM i throught ODBC connection on IBM i.
I want to do a simple SELECT in my databse. It's work very well when the script is executed by a navigator (apache), but when the script is executed by CLI (php example.php) and when i have special characters like : Ô ô é à @ etc in my record PDO return NULL. And when i execute the script in my Web browser all the special characters are okay.
I don't understand why. I put 'CHARSET=UTF-8' in my DSN PDO connection.
I think this bug is related to : iSeries Access ODBC Driver with unixodbc on Debian - Invalid UTF-8 characters being returned from iSeries because when I SELECT with HEX(field) i have the hexa from browser and CLI.
PHP latest version (7.4.6), Debian 9.
...ANSWER
Answered 2020-Jun-03 at 07:13As per comment thread, the cause of the issue was that when running from the command-line shell and php CLI, the shell was not correctly configured for UTF-8 for the correct locale (country etc).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install odbc-driver
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page