odbc

Simba Mongo ODBC driver: returned data that does not match expected data length

感情迁移 提交于 2019-12-20 05:44:07
问题 We are using Simba Mongo ODBC driver to connect to Mongo database and make sql queries. I tested connection on Linux using isql and was able to perform queries. When my client tried to connect to Mongo through Microsoft SQL Server Management Studio he received the following error: OLE DB provider 'MSDASQL' for linked server 'mongo' returned data that does not match expected data length for column '[MSDASQL].contributorComposite__0__biographicalNote'. The (maximum) expected data length is 255,

How to retrieve result of Oracle database function via ODBC?

怎甘沉沦 提交于 2019-12-20 05:41:59
问题 I have problem with calling Oracle stored function (not procedure) via ODBC. My function is really simple, it just concatenates two strings. I can call it via: rs = c.execute("SELECT add_str('yogi', 'bubu') FROM dual") for row in c.fetchall(): print(row[0]) But such type of calling database function will not work for functions that changes database. So I tried this: c.execute("{ ? = call add_str('ala', 'bubu') }"); But I got: Error: HY000: The driver did not supply an error! In ODBC trace

Filemaker 13 ODBC Firebird connection possible?

ε祈祈猫儿з 提交于 2019-12-20 05:38:17
问题 I want to connect a Filmaker 13 Database with a Firebird Database trough ODBC. So far I could connect with a another programm to the Firebird DB from another PC (Win 7 on all PCs). I also have another connection from a telefon software. So there is no issue on that side. When I try to connect to the ODBC DNA Filemaker sayes that this datasource is not supported. 回答1: To answere my own question: Its not possible trough ODBC, its simply not supported. 来源: https://stackoverflow.com/questions

Running asynchronous query in MS Access

▼魔方 西西 提交于 2019-12-20 05:23:31
问题 I'm trying to run some heavy queries asynchronously, but can't figure out how to do it for an .mdb file. This is what I have so far: Dim wrksp As Workspace, qdf As QueryDef, rst As Recordset Dim cnn As Connection, strConnect As String Set wrksp = CreateWorkspace("ODBCDirect", "Admin", "", dbUseODBC) strConnect = "ODBC;Driver={Microsoft Access Driver (*.mdb)};Database=F:\Databank\webshop_ingrid.mde;Uid=;Pwd=;" Set cnn = wrksp.OpenConnection("", dbDriverNoPrompt, False, _ strConnect) Dim rs As

Using ADO in VBA to connect to PostgreSQL

眉间皱痕 提交于 2019-12-20 04:56:39
问题 I am having trouble finding clear and reliable examples of connecting to a PostgreSQL database from Excel using VBA ADO. Admittedly, I am new to VBA and most examples and tutorials are very Access or MSSQL centered. (I work mostly in Ruby, Rails, Perl and PostgreSQL.) I am looking for code to connect and return a simple query (SELECT * FROM customers;) to an Excel sheet. Connection parameters (server ip, user, pass, database) are located within cells in a separate worksheet. I appreciate your

SQLSTATE[HY010]: Function sequence error: 0 during insert

蓝咒 提交于 2019-12-20 04:52:10
问题 The problem During a very simple insert query, using PDO with an ODBC driver for a DB2 database, the driver returns the following error: SQLSTATE[HY010]: Function sequence error: 0 [Microsoft][Driver Manager ODBC] [italian message translation] (SQLExecute[0] at ext\pdo_odbc\odbc_stmt.c:254) The query itself is a prepared statement insert, with strings and dates. [italian message translation] just says "Function sequence error" in italian. The research This SO question reports the same problem

SQLSTATE[HY010]: Function sequence error: 0 during insert

自闭症网瘾萝莉.ら 提交于 2019-12-20 04:51:24
问题 The problem During a very simple insert query, using PDO with an ODBC driver for a DB2 database, the driver returns the following error: SQLSTATE[HY010]: Function sequence error: 0 [Microsoft][Driver Manager ODBC] [italian message translation] (SQLExecute[0] at ext\pdo_odbc\odbc_stmt.c:254) The query itself is a prepared statement insert, with strings and dates. [italian message translation] just says "Function sequence error" in italian. The research This SO question reports the same problem

stata odbc sqlfile

笑着哭i 提交于 2019-12-20 04:11:30
问题 I am trying to load data from database (either MS Access or SQL server) using odbc sqlfile it seems that the code is running with any error but I am not getting data. I am using the following code odbc sqlfile("sqlcode.sql"),dsn("mysqlodbcdata") . Note that sqlcode.sql contains just sql statement with SELECT . The thing is that the same sql code is giving data with odbc load,exec(sqlstmt) dsn("mysqlodbcdata") . Can anyone suggest how can I use odbc sqlfile to import data? This would be a

Call Oracle package function using Odbc from C#

五迷三道 提交于 2019-12-20 04:06:54
问题 I have a function defined inside an Oracle package: CREATE OR REPLACE PACKAGE BODY TESTUSER.TESTPKG as FUNCTION testfunc(n IN NUMBER) RETURN NUMBER as begin return n + 1; end testfunc; end testpkg; / How can I call it from C# using Odbc? I tried the following: using System; using System.Data; using System.Data.Odbc; class Program { static void Main(string[] args) { using (OdbcConnection connection = new OdbcConnection("DSN=testdb;UID=testuser;PWD=testpwd")) { connection.Open(); OdbcCommand

Illegal attempt to use Text/Byte host variable - Inserting into TEXT column

最后都变了- 提交于 2019-12-20 03:54:07
问题 Trying to insert into a table (Text Column) via Dapper, and getting the error from Informix: Illegal attempt to use Text/Byte host variable I have written a small program to simulate this, and I am still up against problems. We cannot currently use the Informix drivers, as they do not suit our needs. using Dapper; using System; using System.Data.Odbc; namespace DapperParamsTest { class Program { static void Main(string[] args) { OdbcConnection conn = new System.Data.Odbc.OdbcConnection(