odbc

How to connect to a MySQL database through ODBC from Qt application?

删除回忆录丶 提交于 2019-12-09 07:50:34
I have a freshly-installed MySQL server, which listens on localhost:3306. What is the correct way to connect to it from my Qt application? It turned out that I need to add MySQL to the ODBC data sources. I did that after following this video tutorial - https://youtu.be/K3GZidOwGmM . After I had added the DSN, I successfully connected to the MySQL server using this code: QSqlDatabase db = QSqlDatabase::addDatabase("QODBC"); db.setDatabaseName("Driver={MySQL ODBC 5.3 Unicode Driver};DATABASE=test;"); db.setUserName("root"); db.setPassword("password"); if (!db.open()) { qDebug() << db.lastError()

SQL Server to MySQL data transfer

落爺英雄遲暮 提交于 2019-12-09 05:56:29
问题 I am trying to transfer bulk data on a constant and continuous based from a SQL Server database to a MYSQL database. I wanted to use SQL Server's SSMS's replication but this apparently is only for SQL Server to Oracle or IBM DB2 connection. Currently we are using SSIS to transform data and push it to a temporary location at the MYSQL database where it is copied over. I would like the fastest way to transfer data and am complication several methods. I have a new way I plan on transforming the

How do I connect to my 64-bit SQL Server with ODBC?

回眸只為那壹抹淺笑 提交于 2019-12-09 05:17:01
问题 I recently installed SQL Server 2008 Express on my Windows 7 Ultimate x64 home machine. I also have IIS 7.5 with PHP 5.3, and I was trying to connect to SQL via ADODB, but kept getting this error: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application After doing a small amount of digging on the internet, I think this is because the SQL Server ODBC driver is meant for 32-bit operating systems, and mine's 64. First of all, am I

OleDB Data provider can not be found VBA/Excel

喜夏-厌秋 提交于 2019-12-09 03:16:55
问题 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 =

annoying “feature” (or bugs?) for RODBC

依然范特西╮ 提交于 2019-12-09 00:34:38
问题 RODBC is the main library in R to import data from a database into R. RODBC seems to have the ability of "guess" the datatype of the column which I find it particularly annoying. I have uploaded a file test.xls here, or you may create a xls file yourself: create 2 columns, first column named col_a and the second column named col_b . type whatever you like in col_a , I typed letters on this column for 92 rows at the 92th row of col_b, type a number there, I typed "1923" without changing the

odbc unable to connect to MSSQL data source on OS X Lion

浪尽此生 提交于 2019-12-08 18:39:47
问题 odbc isql was unable to connect to data source: $ isql SMS_GTWY username password -v returns: [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [01000][unixODBC][FreeTDS][SQL Server]Unknown host machine name. [ISQL]ERROR: Could not SQLConnect while tsql is ok: $ tsql -S SERVER001 -U username -P password returns: locale is "C/UTF-8/C/C/C/C" locale charset is "UTF-8" using default charset "UTF8" 1> $ cat ~/.freetds.conf : [SERVER001] host = 192.168.8.101 port = 1433 tds

LAMP (PHP) accessing Access Database with ODBC with MDBTools Driver

拥有回忆 提交于 2019-12-08 18:17:30
Can anyone tell me if there is limited SQL support using unixODBC drivers on Ubuntu with PHP? I've setup a basic lamp server on Ubuntu 11.10, and I'm trying to query an Access database. I've installed php5-odbc and MDB Tools. Here is some sample code: <?php $conn = odbc_connect('logindb','',''); if (!$conn) { echo "failed"; } $sql = "SELECT * FROM class"; //$sql = "SELECT class.desc, event_classes.event_class_id FROM class inner join //event_classes on class.class_id = event_classes.class_id"; $rs = odbc_exec($conn, $sql); while ($d = odbc_fetch_array($rs)) { var_dump($d); } ?> The first query

How to add ODBC to MAMP on OSX

那年仲夏 提交于 2019-12-08 16:43:35
问题 I'm trying to get ODBC to work on MAMP. I have tried many suggestions and solutions including those already on stackoverflow: MAMP: Adding ODBC or SQL Server support , How do I add an ODBC driver to a MAMP environment? None are successful so far. This is the latest I tried. I downloaded the latest ODBC connector: http://dev.mysql.com/downloads/connector/odbc/ Installed it with the OSX DMG I than added the driver in iODBC I keep getting this message: Specific driver could not be loaded and No

Excel VBA connecting to remote MySQL Database

狂风中的少年 提交于 2019-12-08 13:46:10
问题 i am using the OBDC connector to use VBA to connect to my MySQL database. It currently runs on a local webserver (localhost) but is accessible from other PCs on the network via my PC's IP address. In my connection function I had localhost as the location but when I change it to my IP address I get an [MySQL][ODBC 5.2 Driver] (my computer name) is not allowed to connect to this MySQL server error. I presume this is a security problem. Any way to fix this? Here is my connection function: Public

Driver for pyodbc: how to specify its location in macOS?

喜欢而已 提交于 2019-12-08 13:16:53
问题 I want to find a way to specify the path of a driver -- or otherwise resolve problem that Pyodbc cannot find a Vertica driver -- for the following Python 3 command with Pyodbc package Pyodbc.connect(...) but I keep getting the error that a Vertica driver 9.0.x cannot be found. I used the installer here and the installer here on macOS. I currently use an alias Vertica in the command but unknown for the Pyodbc connect so apparently some driver file problem, now need to find a way to resolve