unixodbc

RaiseError (PERL, DBI) equivalent for unixODBC C API?

回眸只為那壹抹淺笑 提交于 2019-12-25 02:26:01
问题 I have a problem executing some stored procedures/functions in INFORMIX DB. I tried with different clients and they were all the same - no one detects errors on executing, instead of this - return empty responses. And this does not work for me. Finally, I found that PERL DBI has the option to set RaiseError , something like: { PrintError => 0, RaiseError => 1 } And this works perfect. But is there such equivalent (I couldn't find anything, unfortunately) for the unixODBC C API lib? In

pyodbc not working on RedHat 5.4. Trying to connect to ms-sql database server using unixODBC and FreeTDS?

亡梦爱人 提交于 2019-12-24 16:26:43
问题 I am facing issue while trying to access ms-sql database using pyobdc. Here is the System config: Python 2.7.11 Pyodbc 3.0.7 RedHat 5.4 (Tikanga) 32 Bit system Microsoft SQL Server 2012 (Database server) unixODBC 2.3.0 $ tsql -C output : Compile-time settings (established with the "configure" script) Version: freetds v0.91 freetds.conf directory: /etc MS db-lib source compatibility: yes Sybase binary compatibility: no Thread safety: yes iconv library: yes TDS version: 5.0 iODBC: no unixodbc:

connecting to DB2 database:[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed

牧云@^-^@ 提交于 2019-12-23 16:51:45
问题 odbc.ini: [DEFAULT] Driver = DB2 [abc] Driver = DB2 [dsn_test1] DESCRIPTION = Connection to DB2 Driver = db2 odbcinst.ini: [DB2] Description = DB2 Driver Driver = /home/user/sqllib/lib/libdb2.so fileusage=1 dontdlclose=1 [ODBC] Trace=1 TraceFile=/home/user/sqllib/trace.out db2cli.ini [abc] hostname="hostname" pwd="passwd" port="port" PROTOCOL=TCPIP database="dbname" uid="uid" $ ./isql abc +---------------------------------------+ | Connected! | | | | sql-statement | | help [tablename] | |

Unable to connect to remote mysql server using unixodbc, libmyodbc

▼魔方 西西 提交于 2019-12-23 13:11:42
问题 I'm a little green at this, and I hope the issue I'm having is a simple one...edit: new information at bottom I need to make a connection to a remote mysql (Amazon RDS) database. After following a few tutorials, I have unixodbc and libmyodbc installed and configured on the client, but when I try to connect via isql, I get the error [08S01][unixODBC][MySQL][ODBC 5.1 Driver]Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [ISQL]ERROR: Could not SQLConnect The

How to build pyodbc with links to iODBC in macOS?

橙三吉。 提交于 2019-12-23 05:02:51
问题 In Driver for pyodbc: how to specify its location in macOS?, TallTed suggested to open question to explain the following Build pyodbc with links to iODBC (not its default of UnixODBC, which is not typical for macOS). so now with the focus — How can I build pyodbc with links to iODBC (not its default of UnixODBC, which is not typical for macOS)? 回答1: This should/might work in 4.0.23, as it was the way it was done up to pyodbc v3.0.7: First, in the file 'setup.py' change line 165 from: settings

Set connection settings with Pyodbc + UnixODBC + FreeTDS

纵然是瞬间 提交于 2019-12-22 18:23:24
问题 I have a setup using Pyodbc, UnixODBC and FreeTDS, but somewhere in there some options are being set and I don't know where. According to SQL Server Management Studio, my program is sending some settings when it opens the connection: set quoted_identifier off set ansi_padding off set ansi_nulls off ... But I need a different set of settings: set quoted_identifier on set ansi_padding on set ansi_nulls on ... Is there any way to change this? If I can't do it with my current setup, are there any

Querying database schema of SQL Server DB via ODBC?

眉间皱痕 提交于 2019-12-22 17:58:52
问题 Is there a generic way to retrieve a database schema using ODBC that works across databases? If not, what is the easiest way to do this when the database server is MS SQL Server? I am working with unixodbc, from Linux. 回答1: Query against the INFORMATION_SCHEMA views. Beautiful thing about using information schema is that it's a standard so it should be portable to any database that has implemented the standard. e.g. SELECT * FROM INFORMATION_SCHEMA.COLUMNS ISC The standard is the SQL-92

How to install Microsoft Drivers for PHP for SQL Server on Amazon Linux AMI

拈花ヽ惹草 提交于 2019-12-22 10:13:34
问题 I am trying to install Microsoft Drivers for PHP for SQL Server using the document provided by Microsoft. Link is https://github.com/Microsoft/msphpsql It provides installation steps for Ubuntu and Redhat but not Amazon Linux. To install Microsoft Drivers on Amazon, I followed steps provided for Redhat ( not sure if it is correct). When I run the command sudo ACCEPT_EULA=Y yum install msodbcsql mssql-tools got the below error Error: Package: msodbcsql-13.1.7.0-1.x86_64 (packages-microsoft-com

unixodbc driver manager cannot open specified library on install

半腔热情 提交于 2019-12-21 04:23:18
问题 I'm using ArchLinux and I am trying to install OpenEdge progress drivers so I can access it via PHP. I've installed the unixodbc package and the drivers, but when I test the connection via isql or PHP, I get the same error... # isql -3 SUBS2A [01000][unixODBC][Driver Manager]Can't open lib '/usr/dlc/odbc/lib/pgoe1023.so' : file not found [ISQL]ERROR: Could not SQLConnect The messed up thing is that "/usr/dlc/odbc/lib/pgoe1023.so" presently exists, I even symlinked it from "/usr/dlc". The

Microsoft® ODBC Driver 11 for SQL Server® on RedHat Linux with PHP - gives an error when bind parameter with PDO for stored procedures

非 Y 不嫁゛ 提交于 2019-12-20 04:16:52
问题 Without any parameters it will works fine, but when parameters are there, gives the following error - SQLSTATE[42000]: Syntax error or access violation: 8018 [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid parameter 4 (''): Data type 0x23 is a deprecated large object, or LOB, but is marked as output parameter. Deprecated types are not supported as output parameters. Use current large object t (SQLExecute[8018] at /builddir/build/BUILD/php-5.3.3/ext/pdo_odbc/odbc_stmt.c:254) This