odbc

Protocol issue connecting Derby by db2 ODBC

被刻印的时光 ゝ 提交于 2019-12-11 03:51:01
问题 This is a problem when I tried to connect Derby Database by DB2 ODBC I started the Derby Network Server and created a database named "mydb" but,after I did as the steps described in an article on IBM's site,I countered a problem on the server side. Step 1->db2 catalog tcpip node MYDERBY remote localhost server 1527 Step 2->db2 catalog db mydb at node MYDERBY authentication server Step 3->db2 connect to mydb user abc using abc Problem: Execution failed because of a Distributed Protocol error

Excel 2007 - 1004 Run-time error Refresh Query Table

江枫思渺然 提交于 2019-12-11 03:43:23
问题 It appears that this error is so generic that many of the existing solutions address different issues. In my case I have created a macro that works in Excel 2010 and does not work in Excel 2007. Here is a summary of the code: cn = "ODBC;Driver={SQL Server Native Client 10.0};Server=serverName;Database=dbName;Trusted_Connection=yes;" sql = "select top 10 * from tableName" Dim S As Worksheet Set S = ActiveWorkbook.Sheets("Medical") With S.QueryTables.Add(Connection:=cn, Destination:=S.Range("B1

Oracle ODBC connection failure (using oracle's stock ODBC drivers)

孤街浪徒 提交于 2019-12-11 03:43:13
问题 Want to use an Oracle-ODBC connection in Visual Studio 2017/ SSIS as it's much faster than OLE DB during tests. Problem: I follow Oracle's steps to the letter. Install instant client (v18, also tried v12). Download/ extract ODBC download in same library. Run odbc_install.exe. See the Driver in 'ODBC Data Sources/ Admin' in Windows 10. Add new User Data Source. TNS Service names pull up fine. Test Connection (User/ Pass) -- it works!! The Connection works!! I tried this with 64 bit in Oracle,

Create Connection to .accdb Access File

泄露秘密 提交于 2019-12-11 03:37:21
问题 I've been on this class for a few days now searching the web trying to find a solution. What I am trying to do here is connect to a Access 2010 database with an extension .accdb I have been successful connecting to older databases with extensions of .mdb but not .accdb I have tried uninstalling Office and re-installing it for x64 versions and then installing the Access x64 tools. The error I received when I use the below code is as follows: java.sql.SQLException: [Microsoft][ODBC Driver

Connect IBM database using PDO

元气小坏坏 提交于 2019-12-11 03:27:24
问题 I tried connect IBM database through PDO using below code. But, it is not working try { $db = new PDO("odbc:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=BLUDB;HOSTNAME=hostname;PORT=50000;PROTOCOL=TCPIP;", "username", "password"); echo "<pre>"; print_r($db); exit; } catch (PDOException $e) { echo $e->getMessage(); } I got below error for the same SQLSTATE[IM002] SQLDriverConnect: 0 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified I have also added below

How can I connect to a System ODBC connection is Access 2010 on Windows 7

帅比萌擦擦* 提交于 2019-12-11 02:55:57
问题 I'm trying to connect an Access DB (2010 32-bit) to a System ODBC connection on a Windows 7 PC (64-bit) However, when I try to link to the Machine Data source for it, I can't find the ODBC data source I created. I know there's an issue between 32 bit apps and the 64 driver. And that there are two version of the ODBC Datasource Administrator C:\Windows\SysWOW64\odbcad32.exe C:\Windows\System32\odbcad32.exe I've tried both, and neither one seems to be able to create an ODBC source that is

What is the proper exception to throw if an ODBC driver cannot be found

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:32:33
问题 I have the following code that searches for installed Microsoft Access drivers: var odbcRegKey = Registry.LocalMachine.OpenSubKey( "SOFTWARE\\ODBC\\ODBCINST.INI\\ODBC Drivers", false); var drivers = new List<string>(odbcRegKey.GetSubKeyNames()); if (drivers.Contains("Microsoft Access Driver (*.mdb, *.accdb)")) { MicrosoftAccessProvider = "Microsoft Access Driver (*.mdb, *.accdb)"; } else if (drivers.Contains("Microsoft Access Driver (*.mdb)")) { MicrosoftAccessProvider = "Microsoft Access

Create ODBC DSN using VB.NET

倖福魔咒の 提交于 2019-12-11 02:10:59
问题 I want to create ODBC DSN for a database (which will be included in my application folder whenever a user setups the application). I want to know how to create ODBC with all the required parameters so that the first thing that is done when the setup is being run is connecting the database to the application. I have tried using default VB.NET setup wizard and Installshield. 回答1: I don't know any method to create DSN via installer or with VB.NET but using Windows utilities you can create one.

RODBC error - ODBC connection failed - can't connect to MySQL with my mac (mavericks)

狂风中的少年 提交于 2019-12-11 01:38:12
问题 I am trying to connect to a mysql database through R using RODBC on my mac (mavericks) but after a stupid number of hours of effort, I still can't get it working. When I try to connect to a database, RODBC throws this error (error message is so terse, I don't know what it means): ch <- odbcConnect("mydatabasename") "Warning messages: 1: In odbcDriverConnect("DSN=mydatabase") : [RODBC] ERROR: state H, code 0, message [unixODBC][ 2: In odbcDriverConnect("DSN=mydatabasename") : ODBC connection

Syntax error while trying to call an Oracle package using ODBC in C#

妖精的绣舞 提交于 2019-12-11 01:15:16
问题 I'm trying to consume an Oracle 9i package using ODBC and C#. I've tried to use the syntax described in here, here, here and here but I can't seem to get it right. Note : I'm not allowed to use ODAC/ODP.NET in this particular case. This is the package structure: DECLARE PARAM1 NUMBER; --in PARAM2 VARCHAR2(200); --out PARAM3 VARCHAR2(200); --out PARAM4 VARCHAR2(200); --out BEGIN PARAM1 := 123; PARAM2 := NULL; PARAM3 := NULL; PARAM4 := NULL; TESTUSER.TESTPKG.TESTFUNC(PARAM1, PARAM2, PARAM3,