odbc

MySQL ODBC 5.1 Set Names not allowed by driver

ε祈祈猫儿з 提交于 2019-12-04 20:07:13
I've a windows 2008 server and an asp website. I moved site to my server from a windows 2003 server and it was working good. It uses mysql as database and Set Names 'Latin5' was it's odbc driver initial statement. I tried to set same initial statement and I got "Set Names not allowed by driver" error message and db update/insert queries gives error. The site is in Turkish language. Thanks for the help.. SET NAMES has been removed in MyODBC version 5.1. http://dev.mysql.com/doc/refman/5.1/en/connector-odbc-news-5-1-1.html So you have a couple of options: With MyODBC 5.1, remove all of the SET

PHP ODBC connect() to Access - architecture mismatch

自作多情 提交于 2019-12-04 19:03:59
问题 I have googled for hours now. I have read countless articles such as: Is there a Windows 7 ODBC driver for Access? I have tried using both the ODBC admin - and have managed to successfully add there system DSN for both: Microsoft Access Database Microsoft do Access Database When I attempt to connect to Access DB stored locally: odbc_connect('Aquarius2', '', ''); I get the following error(s): odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture

Multiple result sets returned from php ODBC query?

故事扮演 提交于 2019-12-04 19:02:13
I'm running the following query in a PHP ODBC connection to a MSSQL sever: DECLARE @weekStart SMALLDATETIME; SET @weekStart = DATEADD(d,0, DATEDIFF(d,0,GETDATE())); -- weekStart = TODAY @ 00:00:00 -- per http://weblogs.sqlteam.com/jeffs/archive/2007/01/02/56079.aspx SET @weekStart = DATEADD(d, 1-DATEPART(dw, GETDATE()), @weekStart); -- subtract to last SUN @ 00:00:00 SELECT DATEDIFF(week, Run_Date, @weekStart) AS weeksAgo ,MIN(Current_List) AS list ,COUNT(*) AS cnt ,SUM(NoContact_90Days) AS noContact90 ,SUM(NoContact_180Days) AS noContact180 ,SUM(NoMtg_180Days) AS noMtg180 ,SUM(NoMtg_360Days)

Reading Visual Foxpro Data From Java using ODBC

旧街凉风 提交于 2019-12-04 17:16:48
I am trying to query a dbf table from my Java application. I put in reference this thread I created a system data source using the ODBC Data Source Administrator, I set the data source name to be VFPDS and set the database type to .DBC finaly i set the path to the .dbc file. the following is my java code: import javax.swing.* ; import java.awt.* ; import java.awt.event.* ; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.SQLWarning; import java.sql.Statement; // Import custom library containing myRadioListener import java.sql.DriverManager;

Command line to change path to .mdb file for MS Access ODBC System DSN?

拈花ヽ惹草 提交于 2019-12-04 16:19:18
What odbcconf.exe command line can I use to change the path to the MS Access .mdb file for an already existing System DSN? matt wilkie To answer the question as asked, here is a solution using odbcconf.exe instead of going straight to the registry: odbcconf.exe configsysdsn ^ "Microsoft Access Driver (*.mdb, *.accdb)" ^ "DSN=OurConnectionName;DBQ=X:\Path\to\OurMsAccessDB.mdb" Two items of note which had me tripped up for a while: make sure you use 64bit odbcconf.exe when on a 64bit system, see https://stackoverflow.com/questions/6721702/windows-7-64-bit-odbc-drivers-for-ms-access-missing . use

ASP, MySQL and UTF-8

不想你离开。 提交于 2019-12-04 16:03:29
First of all, I've read almost all topics about this. I've tried all advices but I couldn't solve this problem. Here is the thing. I use Classic ASP and MySQL for a project. Everything just fine. If I write (an example) Response.Write("ĞŞÜÇÖİ") it works like a charm. But if that string comes from database, I see "ÄÅÜÇÖİ" instead of "ĞŞÜÇÖİ". When I look this with phpMyAdmin it's ok. I use Dreamweaver CS6. I save all pages Unicode (UTF-8). I've written Session.CodePage = 65001, Response.CodePage = 65001, Response.Charset = "utf-8" in an include file that every page has it at the top. I've

Oracle ODBC: Why are national characters changed to Latin equivalent in SELECT result

笑着哭i 提交于 2019-12-04 13:57:36
I have Oracle 11 database to which I connect using both JDBC and ODBC. JDBC works well, but in ODBC all Polish letters in SELECT result are changed to Latin equivalent, for example ą -> a , Ó -> O etc. I tested it with my application and simple Python program that uses odbc module. The same value from database is returned as: ZAMOŚĆ - by JDBC ZAMOSC - by ODBC My environment: DB server: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production Client machine: Windows Server 2008 R2 64 bit Oracle clients in 32 bit and 64 bit versions in: c:\Oracle\Ora1120_32bit and c:\Oracle\Ora1120_64bit ODBC

Microsoft Access Text ODBC Driver on Windows 7

≯℡__Kan透↙ 提交于 2019-12-04 13:31:36
问题 I created a Delphi application which utilizes an ODBC data source to access text files in csv format. The driver is the "Microsoft Access Text Driver". But when I deploy my application on a Windows 7 computer it does not work because this driver is not available (there are only two available in odbcad32: sql native client and sql server) How can I install this driver? I have tried to install MDAC, but it doesn't do anything. No errors or anythinig, but it just shows a quick scroll bar and

Programatically create ODBC connection and link tables in MS Access

旧街凉风 提交于 2019-12-04 12:36:34
问题 We are using MS Access as a reporting front-end for Oracle. The data is accessed via an ODBC connection, and there are two linked tables in Access to Oracle that are the raw data tables. I'd like to be able to set up the connection and link the tables from within the Access file. That way users don't have to worry about setting up an DSN for the ODBC connection (most of them are not very technical users, and will require hand-holding for something like this), and we can eventually have the

Connect to MySQL directly from an iPad app (not via PHP, etc.)

旧街凉风 提交于 2019-12-04 12:14:17
Before anyone has a chance: Yes, i know it's a bad idea. Please, don't give me a lecture on how i should use a web service instead. Thanks. So, how could this be done? I found this bit http://www.karlkraft.com/index.php/2010/09/17/mysql-for-iphone-and-osx/ and thought it might do the trick. I got a bunch of ARC error messages, cleaned those out and got this error at runtime: Detected an attempt to call a symbol in system libraries that is not present on the iPhone: pthread_cond_init$UNIX2003 called from function my_thread_init in image oms. Do i need to use something like ODBC/C? I know that