odbc

Oppposite Workings of OLEDB/ODBC between Python and MS Access VBA

会有一股神秘感。 提交于 2019-12-01 11:28:39
Fellow more advanced programmers: Please forgive me if this seems like the tired Python 32-bit/64-bit ODBC/OLEDB Windows issue but I tried searching the forums and can't quite find the reason to my issue. Basically, I tried to connect a very simple Python script first via ODBC using the pypyodbc module, and then second via OLEDB using the adodbapi module, both attempts to an MS Access 2010 .accdb database. However, for OLEDB I consistently get the 'Provider not found. It may not be properly installed' error. And for ODBC I consistently receive the 'Data source name not found and no default

Why the output parameter of my ADODB.Command does not retrieve a value when executing?

旧城冷巷雨未停 提交于 2019-12-01 11:08:30
I have a code in Classic ASP and SQL Server, the idea is simple, to have an stored procedure so you can insert a file but before that, the sp will check if the file already exists, after that will return an output parameter so I can check it on my asp page. The problem is the returning value of the output parameter is nothing, I cann´t figure out where is the problem.. The SP is: ALTER PROCEDURE [dbo].[pi_usu_crear_cuenta] @msg_salida char(1) OUTPUT /* 0=Registro ya existe, 1=Insert satidfactorio, 2=Update Satidfactorio*/ ,@usu_email nvarchar(50) ,@usu_alias nvarchar(50) ,@usu_password

Connecting Excel VBA to oracle DB using 'ODBC'

China☆狼群 提交于 2019-12-01 10:03:54
问题 Basically i work in a software company. My client has a Oracle database. I do access that database through SQL Developer.We have a virtual desktop too -inside which we have all client applications,SQL Plus etc..!! Now one other person in my team has created a excel macro in which if you give your username password and your SQL query, it will connect to the oracle database and fetch the records for you and will save it in an excel sheet in the virtual desktop itself. Now i want to do something

Calling odbc_fetch_array after executing a stored procedure in PHP gives error [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 09:13:33
So, I'm trying to use ODBC to execute a stored procedure in an SQL database, but it returns the error odbc_fetch_array() [function.odbc-fetch-array]: SQL error: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index, SQL state S1002 in SQLGetData Here's the PHP part, pretty standard ... $id = 240 $user = "user"; $password = "password"; $server = "server"; $database = "database"; $con = odbc_connect("SERVER=$server; DRIVER=SQL Server; DATABASE=$database", $user, $password); $res = odbc_exec($con, "exec usp_GetRelatedToID '$id'"); while($row = odbc_fetch_array($res)){ print_r($row); } Here

CRecordset::snapshot doesn't work in VS2012 anymore - what's the alternative?

帅比萌擦擦* 提交于 2019-12-01 09:10:53
Apparently, in VS2012, SQL_CUR_USE_ODBC is deprecated. [Update: it appears that the cursors library has been removed from VS2012 entirely]. MFC's CDatabase doesn't use it anymore (whereas it was the default for VS2010 and earlier versions of MFC), but instead uses SQL_CUR_USE_DRIVER. Unfortunately, SQL_CUR_USE_DRIVER doesn't work properly with the Jet ODBC driver (we're interacting with an Access database). The driver initially claims to support positional operations (but not positional updates), but when an attempt is made to actually query the database, all concurrency models fail until the

Binding int64 (SQL_BIGINT) as query parameter causes error during execution in Oracle 10g ODBC

北战南征 提交于 2019-12-01 08:40:45
I've got an insert into a table using ODBC 3.0 on Oracle 10g that is failing and I have no idea why. The database is on Windows Server 2003. The client is on Windows XP. The table: CREATE TABLE test ( testcol NUMBER(20,0) NULL ); The ODBC calls: SQLAllocHandle(SQL_HANDLE_STMT) = SQL_SUCCESS SQLPrepare(INSERT INTO test (testcol) VALUES (?);) = SQL_SUCCESS SQLINTEGER nStrLen = 0; __int64 nInt64 = 99; SQLBindParameter(hStatement, 1, SQL_PARAM_INPUT, SQL_C_SBIGINT, SQL_BIGINT, 20, 0, &nInt64, 0, &nStrLen) = SQL_SUCCESS SQLExecute() = SQL_ERROR SQLGetDiagRec(1) = SQL_NO_DATA SQLBindParameter

Oppposite Workings of OLEDB/ODBC between Python and MS Access VBA

六眼飞鱼酱① 提交于 2019-12-01 08:29:13
问题 Fellow more advanced programmers: Please forgive me if this seems like the tired Python 32-bit/64-bit ODBC/OLEDB Windows issue but I tried searching the forums and can't quite find the reason to my issue. Basically, I tried to connect a very simple Python script first via ODBC using the pypyodbc module, and then second via OLEDB using the adodbapi module, both attempts to an MS Access 2010 .accdb database. However, for OLEDB I consistently get the 'Provider not found. It may not be properly

How to register ODBC driver?

百般思念 提交于 2019-12-01 06:52:23
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 SQLLite ODBC dll into my application folder and run it but an error shows telling that no ODBC driver

PHP 7.0 ODBC-Driver for Windows

為{幸葍}努か 提交于 2019-12-01 06:51:00
I upgraded my PHP 5.6.30 ( https://www.apachefriends.org/de/download.html ) to PHP 7.0 ( https://bitnami.com/stack/wamp/installer ) Everything worked fine so far and it reduces the loading time from my Page from 1,2 seconds to ~300 ms, when I use a MySQL-Database. But now I'm trying to connect to a MSSQL-Database with the following simple script, that worked fine with my old installation (PHP 5.6): <?php //Use the machine name and instance if multiple instances are used $server = 'Server-Adress'; $user = ''; $pass = ''; //Define Port $port='Port=1433'; $database = 'Databasename'; $connection

OleDB Data provider can not be found VBA/Excel

前提是你 提交于 2019-12-01 06:38:06
I am almost not familiar with VBA (have had some courses back at school and that's it). Now I need to connect to Oracle database (which is running on remote server) from Excel file. I've goggled around and found some examples. So, there is the following code I have written so far: Sub Try() Dim cn As New ADODB.Connection Dim rs As ADODB.Recordset Dim cmd As ADODB.Command Dim chunk() As Byte Dim fd As Integer Dim flen As Long Dim Main As ADODB.Parameter Dim object As ADODB.Parameter Stil = vbYesNo + vbCritical + vbDefaultButton1 Titel = "db connection test" ' Meldung anzeigen. Antwort = MsgBox(