odbc

Oracle (0x80004005)ORA-12154: TNS:could not resolve the connect identifier

梦想的初衷 提交于 2019-12-01 03:42:31
I'm trying to connect to an oracle db from an ASP classic application, however I keep running into the ORA-12154 error. TNSNAMES.ORA is configured properly DBSOURCE.A.B.com = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = C.D.B.com)(PORT = 1231)) ) (CONNECT_DATA = (SERVICE_NAME = DBSOURCE) ) ) I can TNSPING C:\Documents and Settings\USERID.A>tnsping DBSOURCE TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 09-MAR-2 011 09:12:31 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN

Trying to import pypyodbc module gives error 'ODBC Library is not found. Is LD_LIBRARY_PATH set?'

强颜欢笑 提交于 2019-12-01 02:59:52
问题 I am running Python 3.5 on my Linux Mint 18. I want to load the pypyodbc module. However, no matter what I try, I always get the error: OdbcNoLibrary: 'ODBC Library is not found. Is LD_LIBRARY_PATH set?' In Set LD_LIBRARY_PATH before importing in python I got the suggestion to set the path to os.getcwd() , but it did not work either and gave me the same error. What should I install to make it work? See the complete log of the error: In [1]: import pypyodbc ------------------------------------

Laravel to SQL Server (sqlsrv). [PDOException] could not find driver

心已入冬 提交于 2019-12-01 02:36:10
Intro. My laravel app was using mysql, now it needs to be hosted in the network of the company I am working ( I am a remote-worker). And this company are Microsoft peeps, so I need to integrate the laravel to their SQL Server. I have this in my .env DB_CONNECTION=sqlsrv DB_HOST=ip.address.of.server DB_PORT=3306 DB_DATABASE=my_db DB_USERNAME=my_username DB_PASSWORD=my_password After using the php artisan migrate Error: [PDOException] could not find driver I am using Ubuntu, a remote box dedicated for me (from my employer). I have tried using sql server in my laravel app before (using my Windows

How do I get ms-access to connect to ms-sql as a different user?

三世轮回 提交于 2019-11-30 23:27:13
How do I get ms-access to connect (through ODBC) to an ms-sql database as a different user than their Active Directory ID? I don't want to specify an account in the ODBC connection, I want to do it on the ms-access side to hide it from my users. Doing it in the ODBC connection would put me right back in to the original situation I'm trying to avoid. Yes, this relates to a previous question: http://www.stackoverflow.com/questions/50164/ I think you can get this to work the way you want it to if you use an "ODBC DSN-LESS connection" If you need to, keep your ODBC DSN's on your users' machines

ODBC access over network to *.mdb

点点圈 提交于 2019-11-30 23:16:34
I have a general question of how ODBC with *.mdb works. In my understanding, and please correct me if I'm wrong, no matter if I use odbc or not, when accessing an MS Access database (*.mdb) that is stored on another computer, i.e. a NAS, my computer first needs to load the full *.mdb file before it can do any operations on it, no matter how simple they are. Much unlike an SQL server who just sends back the result to a query. If you can confirm this, then I have a few related questions with regards to multiuser environments where the mdb is accessed via odbc: How often is the file saved back to

ODBC connection to MS-Access on Ubuntu

三世轮回 提交于 2019-11-30 23:04:42
One of our employees created a Microsoft Access Database and has built a Joomla! module around it. It is currently running on a WAMP server, with an ODBC connection to the accdb file. How can I create an ODBC connection on Ubuntu for the Access database? At this point, I'm open to having the DB live locally on my Ubuntu server, or on an SMB share somewhere. Moving it from Access to MySql has already been proposed. It may come down to that, but I'm really being pressured to find another option. Does anyone know if this is possible and how to accomplish it? I'm sorry if this question has already

How to specify null value in MS Access through the JDBC-ODBC bridge?

人盡茶涼 提交于 2019-11-30 22:49:04
I am not able to call setNull on PreparedStatement using MS Access (sun.jdbc.odbc.JdbcOdbcDriver) preparedStatement.setNull(index, sqltype). Is there a workaround for this? For LONGBINARY data type, I tried the following calls, neither worked. setNull(index, java.sql.Types.VARBINARY) setNull(index, java.sql.Types.BINARY) java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid SQL data type at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114) at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterNull(JdbcOdbc.java:986

PDO: How to access Microsoft Access file on Linux?

一个人想着一个人 提交于 2019-11-30 20:36:09
I have managed to read data of Microsoft Access file (.accdb) on Windows using PDO but I'm having problem getting to work on Linux (CentOS). I can see modules is installed: [root@rapid host]# php -m | grep PDO PDO PDO_ODBC [root@rapid host]# php -m | grep odbc odbc code: <?php try{ $dbhAccess = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=/root/access/data.accdb;Uid=Admin"); } catch(PDOException $e){ echo $e->getMessage(); exit(); } I get an erro when I execute (CLI) PHP file: [root@rapid host]# php access.php SQLSTATE[IM002] SQLDriverConnect: 0 [unixODBC][Driver Manager

Get the list of ODBC data source names programatically using Delphi

蹲街弑〆低调 提交于 2019-11-30 20:07:57
I saw several examples where the list of the source names were took from registry (HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ODBC Data Sources). Is there any other way to get the list of ODBC data sources names? I need to work only with Delphi standard components, so I can not use 3d party solutions. You have to use SQLDataSources function from ODBC32.DLL. For example . 来源: https://stackoverflow.com/questions/7675412/get-the-list-of-odbc-data-source-names-programatically-using-delphi

Use 32-bit version of ODBC on 64-bit Windows 7?

一笑奈何 提交于 2019-11-30 18:49:26
I'm having problem with ODBC and an application written with Visual Basic 6 (so it's 32-bit). It seems that the ODBC library of VB6 is not compatible with the 64-bit ODBC of Windows 7. The error code returned is -2147220992 and it's rambling about incompatible architectures. Can I install a 32-bit version of ODBC? Or any other alternatives? use the 32-bit odbc manager to add your DSN: C:\Windows\SysWOW64\odbcad32.exe that should be able to see the 32-bit odbc driver. You need to use the 32 bit version of ODBC. You can't mix 32 and 64 bit code in the same process. However, that may not be your