odbc

Do I Still Need To Install Oracle Client if Using Microsoft ODBC for Oracle to connect to an Oracle Database?

蹲街弑〆低调 提交于 2019-12-19 10:19:19
问题 Using ActiveX Data Objects 2.8 Library as a Reference from Excel VBA, and the connection string is: "Driver={Microsoft ODBC for Oracle}......." And I also have the "Microsoft ODBC for Oracle" (MSORCL32.dll) entry in the Drivers tab of Windows XP's ODBC Manager. Now, will I be able to connect to an oracle databse, without any oracle client/products installed on my machine? 回答1: I'm pretty sure you need to install Oracle client; what's more, I believe it has to be Oracle 8 Client (MS hasn't

How to register ODBC driver?

此生再无相见时 提交于 2019-12-19 09:18:21
问题 I have created a inventory system for my school project and I use SqlLite as standalone DB. I am able to run it as long as I install the SqlLite ODBC connection (separate installer). But what I want is to create an installer and install the SqlLite ODBC Drivers along with my porject in one installer instead of of running two separate installer (my application and sqlLite ODBC driver installer). Any idea how to do it? Or do you have any recommendation? What I have done so far. I copy the

Django <-> SQL Server 2005, text encoding problem

南楼画角 提交于 2019-12-19 08:12:32
问题 I'm trying to store Django data on MS SQL Server 2005 using: http://code.google.com/p/django-pyodbc/ (pyodbc + FreeTDS) As long as I'm storing string consist of ASCII characters everything is ok. When I'm using unicode (ex. '\xc5\x82'), django throws ProgrammingError on: ProgrammingError at /admin/cli/punktrejestracji/add/ ('42000', '[42000] [FreeTDS][SQL Server]The incoming tabular data stream (TDS) protocol stream is incorrect. The stream ended unexpectedly. (4002) (SQLExecDirectW)') last

With VBA, find the version of the the MySQL ODBC driver installed in Windows

自古美人都是妖i 提交于 2019-12-19 06:44:27
问题 Using Visual Basic for Applications , how can I find out which version of the MySQL ODBC driver is installed in Windows on a user's machine? I have a Microsoft Access application that uses the MySQL ODBC driver to make a connection. The connection string looks like this: ODBC;DATABASE=mydatabase;DRIVER={MySQL ODBC 3.51 Driver}; OPTION=3;PWD=password;PORT=3306;SERVER=server-db;UID=db-user; This was working find until the IT manager installed version 5.1 of the MySQL ODBC driver on a user's PC,

With VBA, find the version of the the MySQL ODBC driver installed in Windows

限于喜欢 提交于 2019-12-19 06:44:01
问题 Using Visual Basic for Applications , how can I find out which version of the MySQL ODBC driver is installed in Windows on a user's machine? I have a Microsoft Access application that uses the MySQL ODBC driver to make a connection. The connection string looks like this: ODBC;DATABASE=mydatabase;DRIVER={MySQL ODBC 3.51 Driver}; OPTION=3;PWD=password;PORT=3306;SERVER=server-db;UID=db-user; This was working find until the IT manager installed version 5.1 of the MySQL ODBC driver on a user's PC,

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

本秂侑毒 提交于 2019-12-19 06:28:11
问题 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,

ODBC access over network to *.mdb

梦想的初衷 提交于 2019-12-19 04:05:16
问题 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

Get the list of ODBC data source names programatically using Delphi

故事扮演 提交于 2019-12-19 02:39:12
问题 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. 回答1: 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

How to convert Pandas DataFrame column from Pandas datetime64[ns] to Pyodbc SQL_Timestamp

做~自己de王妃 提交于 2019-12-18 09:47:19
问题 I am trying to populate Pandas Dataframe into empty MS Access 2016 table via pyodbc. I get the following error message when I try to insert Dataframes into Access: pyodbc.dataerror: ('22008', [ODBC Microsoft Access Driver]Datetime field overflow . Research showed that MS Access Date/Time datatypes correspond to ODBC SQL_TIMESTAMP datatypes. I tried the following to convert datetime64[ns] to SQL_TIMESTAMP: import datetime cursor.execute("INSERT sql statement...VALUES(?)", datetime.datetime

Delete a query from excel workbook with Vba

 ̄綄美尐妖づ 提交于 2019-12-18 09:14:27
问题 I am pretty new to VBA and am learning how to add connections to databases in excel. I currently have a macro that creates a query called "Query1" it then queries my database and returns the correct table. I would like to be able to delete the query after the table is output to the excel sheet so that I can run the macro again with slightly modified conditions eg different dates. Sub Macro2() ' ' Macro2 Macro ' ActiveWorkbook.Queries.Add Name:="Query1", Formula:= _ "let" & Chr(13) & "" & Chr