odbc

MySQL ODBC 32 vs 64 bit

。_饼干妹妹 提交于 2019-12-03 17:30:15
I have a 32-bit application that must run on a Windows x64 server using a 64-bit version of MySQL. Should I use a 32-bit ODBC driver or a 64-bit ODBC driver? Or should I install a 32-bit version of MySQL too? Justin Gregoire You would need to install a 32-bit SQL and ODBC driver seeing as how your application is in 32-bit. For compatibility reasons. I am still searching, will edit. ** EDIT To work around this problem, use the appropriate version of the ODBC Administrator tool. If you build and then run an application as a 32-bit application on a 64-bit operating system, you must create the

Connect to MS Access remote .mdb file from php on linux

随声附和 提交于 2019-12-03 16:36:15
I have been digging internet for couple days, reading very old information, that leads to very old and nonexisting sites, still, I understood, what is needed to achieve my goal. We have a file.mdb on server running WindowsXP, so I need to add it to ODBC data sources. I do that with simple steps, ending up with "System DSN", that allows access to that .mdb file I need to install on this same server some sort of ODBC bridge, that would allow me to create remote connection to this server, making that bridge connect to servers ODBC DSN, and query out my stuff (could not find any free ODBC bridge)

C++ Access to SQL Server from Linux

為{幸葍}努か 提交于 2019-12-03 16:20:33
问题 I need to write some data to SQL Server database from Linux in C++. I found this sqlapi.com But I think, at first ODBC driver has to be installed and has to work. I folowed this adminlife.net/allgemein/mssql-zugriff-unter-debian-etch-mit-unixodbc-und-freetds/ or this http://b.gil.megiteam.pl/2009/11/linux-odbc-to-mssql/ But it didn't work. The port 1433 seems to be closed ($ sudo nmap -PN -sU -p 1433 192.168.56.101 -> port "filtered") isql -v sqlexpress sa -> wait with no response or get

Connecting iPhone to an ODBC Database

最后都变了- 提交于 2019-12-03 16:16:38
I'm new to iOS development. I have to make an application that connects to a Sybase database. My bet would be to use ODBC. Does anyone know how to connect to an ODBC enabled database from within objective C. I've encountered applications that can do this but I don't seem to find any specific iOS related documentation or source code examples. Does anyone have even the slightest idea? Thanks in advance! There is a new ODBC SDK for iOS available at http://ODBCrouter.com/ipad complete with screenshots and an app you may download and use with the online demonstration system. Mostly you want to get

Invalid cursor state, SQL state 24000 in SQLExecDirect

南笙酒味 提交于 2019-12-03 16:14:10
I need to call two stored procedures in sequence via ODBC in PHP: #run stored procedure 1 $query = "Shipped_Not_Shipped_Rep ".$_GET['rep_id']; $result = odbc_exec($dbh, $query); odbc_result_all($result); #run stored procedure 2 $query = "Shipped_Not_Shipped_Account ".$_GET['account_id']; $result = odbc_exec($dbh, $query); odbc_result_all($result); I'm getting this error in PHP after the second stored procedure call: Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC][FreeTDS][SQL Server]Invalid cursor state, SQL state 24000 in SQLExecDirect If I re-arrange the order I call the

How do I access a SQL Server database from a Perl script in Linux?

六眼飞鱼酱① 提交于 2019-12-03 15:57:40
I have a Perl script on a Linux (Ubuntu 8.10) machine and I need to write data to a SQL Server Database. I've been trying to use the DBD::ODBC module but I can't get it to connect. Where can I get a free/open source driver to use to use for the ODBC connection or is there another way to do this from Perl on Linux? I connect to SQL Server 2005 with the stack of unixODBC , freeTDS (this is the driver) and DBD::ODBC. After you install these components, edit /etc/unixODBC/odbc.ini to read like this: [DNS] Description = my database Driver = /usr/lib/libtdsodbc.so #path to freeTDS driver Server =

Storing password in Excel Mac 2016 ODBC connections using embedded Microsoft Query

自作多情 提交于 2019-12-03 14:53:24
问题 I'm bulding an Excel Mac 2016 file that uses several connections to SQL Server using the embedded Microsoft Query service. The problem is that I'm unable to store the password in the connection: every time I open the file Excel asks for the password of every connection although it is always the same (and now I have 8 connections). No checkbox or option is displayed to store the password. I've checked every option in the menus but I've been unable to find this feature. Also, I've tried to edit

sqlalchemy connect to server, with not specify database

喜你入骨 提交于 2019-12-03 14:25:46
Is it possible to connect to MSSQL server , using sqlalchemy and thencreate a database? I use the following: sqlalchemy.create_engine("mssql+pyodbc://sa:pwd@localhost/") But I get an error: Detail DBAPIError: (Error) ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)') None None I would like to connect to the server, then create database and work with it. alecxe Give it a try: import urllib connection_string = "DRIVER={SQL Server};SERVER=localhost;UID=sa;PWD=pwd" connection_string = urllib.quote_plus(connection

How to convert “0” and “1” to false and true

时间秒杀一切 提交于 2019-12-03 14:15:53
问题 I have a method which is connecting to a database via Odbc. The stored procedure which I'm calling has a return value which from the database side is a 'Char'. Right now I'm grabbing that return value as a string and using it in a simple if statement. I really don't like the idea of comparing a string like this when only two values can come back from the database, 0 and 1. OdbcCommand fetchCommand = new OdbcCommand(storedProc, conn); fetchCommand.CommandType = CommandType.StoredProcedure;

How to get at the database schema of a hidden DB?

微笑、不失礼 提交于 2019-12-03 13:33:54
My customer is a dental practice that has bought a piece of practice management software. This software was installed on their local server, including a patient database, a schedule and all manner of medical records. Now they want me to write some utilities for them that aren't provided with their package, and for this I need the ability to query this database. I tried calling tech support of the software manufacturers ( Patterson/EagleSoft ), and it's difficult finding anyone who understands the technology enough to answer my questions. As far as I can tell, there's no API for their software,