odbc

What are the functional differences between iODBC and unixODBC?

你离开我真会死。 提交于 2019-11-27 13:31:33
问题 There are two major Open Source platform independent implementation of the ODBC. It is iODBC and unixODBC. Considering Unix as ODBC user platform and feature-wise, what are the real practical differences between these two implementations? 回答1: Just so you know I use and have contributed to unixODBC and I don't use iODBC. Unicode support unixODBC follows MS ODBC Driver manager and has SQLWCHARs as 2 bytes UCS2 encoded. iODBC I believe uses wchar_t (this is based on attempting to support iODBC

How to connect PHP with Microsoft Access database

巧了我就是萌 提交于 2019-11-27 12:13:50
I am currently faced with a new challenge to develop a site using Microsoft Access as the primary database instead of mysql. I have not used MS Access before and I would like guidiance on how to go about it, I have looked up the w3c website on W3schools but the code gives error Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\Users\NNALI\Desktop\root\test.php on line 2 and this error Warning: odbc_exec() expects parameter 1 to be resource, boolean given in

Connecting to MS SQL Server with Windows Authentication using Python?

十年热恋 提交于 2019-11-27 11:39:56
How do I connect MS SQL Server using Windows Authentication, with the pyodbc library? I can connect via MS Access and SQL Server Management Studio, but cannot get a working connection ODBC string for Python. Here's what I've tried (also without 'Trusted_Connection=yes' ): pyodbc.connect('Trusted_Connection=yes', driver='{SQL Server}', server='[system_name]', database='[databasename]') pyodbc.connect('Trusted_Connection=yes', uid='me', driver='{SQL Server}', server='localhost', database='[databasename]') pyodbc.connect('Trusted_Connection=yes', driver='{SQL Server}', server='localhost', uid='me

Linux - PHP 7.0 and MSSQL (Microsoft SQL)

二次信任 提交于 2019-11-27 11:07:01
Yes, I know that PHP 7.0 removed the extensions needed to connect to MSSQL. FreeTDS was my option prior to PHP 7.0 but now there really is no obvious upgrade path for those needing to still connect to MSSQL. Stupid question, but given that MSSQL is most certainly well used in enterprise environments, how are we supposed to connect to those databases beginning with PHP 7.0? Am I overlooking something blatantly obvious or did the release of PHP 7 basically give a slap in the face to anyone needing to connect to MSSQL? For clarity, I am NOT talking about connecting from a Windows server running

Setting up PostgreSQL ODBC on Windows

家住魔仙堡 提交于 2019-11-27 10:48:20
问题 I have the latest 64 bit version of PostgreSQL. I am running Win 7 64 bit. I had installed the ODBC driver (via the initial installer) when I installed PG, and upgraded it to the latest version from http://www.postgresql.org/ftp/odbc/versions/msi/. However, when I go to the ODBC control panel and try to add a User DSN, PostgreSQL isn't listed as a server. I was following the instructions given here, but I noted the links are dated. 回答1: As I see PostgreSQL installer doesn't include 64 bit

Connecting Python with Teradata using Teradata module

偶尔善良 提交于 2019-11-27 10:11:50
问题 I have installed python 2.7.0 and Teradata module on Windows 7. I am not able to connect and query TD from python. pip install Teradata Now I want to import teradata module in my source code and perform operations like - Firing queries to teradata and get result set. Check if connection is made to teradata. Please help me writing code for the same as I am new to Python and there is no information available with me to connect to teradata. 回答1: There are a number of ways to connect to Teradata

How to connect pyodbc to an Access (.mdb) Database file

為{幸葍}努か 提交于 2019-11-27 09:32:30
Here's what I've tried: -Find Vista's ODBC Data Source Manager* through search, -Add a new File Data Source*, selecting Driver for Microsoft Access (*.mdb), and selecting my mdb file of interest, -import pyodbc from python shell and try: pyodbc.connect("DSN=<that Data Source I just created>") I get the following error message (Portuguese**): Error: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Nome da fonte de dados n\xe3o encontrado e nenhum driver padr\xe3o especificado (0) (SQLDriverConnectW)') Which translates as "Data source name not found and no standard driver specified". What am

ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

会有一股神秘感。 提交于 2019-11-27 09:11:31
While connecting .net to sybase server I got this error message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This has worked properly before. System DSN with same details work and data connection through vs.net also work. I am using vs.net 2005. Any suggestions? If you're working with an x64 server, keep in mind that there are different ODBC settings for x86 and x64 applications. The "Data Sources (ODBC)" tool in the Administrative Tools list takes you to the x64 version. To view/edit the x86 ODBC settings, you'll need to run that version of the

ASP.NET ODBC Query with parameters

*爱你&永不变心* 提交于 2019-11-27 09:07:49
Please help me, I don't know what can be wrong with the following code: OdbcConnection conn = new OdbcConnection(connString); String query = "INSERT INTO customer (custId, custName, custPass, "+ "custEmail, custAddress, custAge) VALUES (" + "@ID, @Name, @Pass, @Email, @Address, @Age)"; OdbcCommand exe = new OdbcCommand(query, conn); exe.Parameters.Add("@ID", OdbcType.UniqueIdentifier).Value = id; exe.Parameters.Add("@Name", OdbcType.VarChar).Value = name; exe.Parameters.Add("@Pass", OdbcType.VarChar).Value = pass; exe.Parameters.Add("@Email", OdbcType.VarChar).Value = email; exe.Parameters.Add

Using Parameters with an Oracle ODBC Connection

爷,独闯天下 提交于 2019-11-27 08:28:58
问题 I'm connecting succesfully to an Oracle 10g DB with an the Microsoft ODBC for Oracle driver. Regular queries without parameters work fine, but parameterized queries act as if the parameters aren't getting passed in. ex. --this works fine Select * from tbl1 where column1 = 'test' --this doesn't select * from tbl1 where column1 = ? --odbc string parameter 'test' Here's what my connection string looks like: "Driver={Microsoft ODBC for Oracle}; " & _ "CONNECTSTRING=(DESCRIPTION=" & _ "(ADDRESS=