Questions tagged [odbc]

Open Database Connectivity (ODBC) provides a standard software interface for accessing database management systems (DBMS).

ODBC (Open Database Connectivity) is a standard C programming language middleware API for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems; an application written using ODBC can be ported to other platforms, both on the client and server side, with few changes to the data access code.

ODBC accomplishes DBMS independence by using an ODBC driver as a translation layer between the application and the DBMS. The application uses ODBC functions through an ODBC driver manager with which it is linked, and the driver passes the query to the DBMS.

An ODBC driver can be thought of as analogous to a printer or other driver, providing a standard set of functions for the application to use, and implementing DBMS-specific functionality. An application that can use ODBC is referred to as "ODBC-compliant".

Any ODBC-compliant application can access any DBMS for which a driver is installed. Drivers exist for all major DBMSs, many other data sources like address book systems and Microsoft Excel, and even for text or CSV files.

External links:

9481 questions
9
votes
3 answers

Data source name not found and no default driver specified

I have been asked to port a WinForms app that uses the MVP pattern over to a webpage. The app, amongst other things, uploads a CSV file to a DataTable and then does some work. The CSV file is uploaded to the server OK and then read with the…
openshac
  • 4,966
  • 5
  • 46
  • 77
9
votes
4 answers

Docker Ubuntu 18.04 unable to install msodbcsql17 SQL Server ODBC Driver 17

I have the below ubuntu docker file to which I want to add SQL Server ODBC Driver 17 for installation. When I build the docker file, I am getting an error: '/bin/sh -c apt-get install msodbcsql17' returned a non-zero code: 1 Could you please help?…
Suraj
  • 575
  • 1
  • 9
  • 23
9
votes
3 answers

Delete rows from SQL Server table using R (DBI package)

I have a table in SQL server to which I am trying to add data. Before adding the data I want to delete all the existing records, but I do not want to delete the table and recreate it since it has index created in SQL server which I want to preserve.…
ok1more
  • 779
  • 6
  • 15
9
votes
3 answers

How can I access an Oracle database via ODBC from R without making the password public?

This question is based on my attempt to create an application in R that can pull data in from a remote Oracle database via ODBC, but I doubt the answers will be R specific. I am trying to create an application that several users will use (that I'll…
PaulHurleyuk
  • 8,009
  • 15
  • 54
  • 78
9
votes
3 answers

Automatically Detect ODBC Driver using Pyodbc in Python 3

Hi I'm currently using pyodbc in Python 3 and I'm trying to figure out a way to automatically detect ODBC Driver by not having to change manually when used by different computers. The reason is because my computer has ODBC Driver 13 and another…
DanLee
  • 339
  • 1
  • 4
  • 11
9
votes
3 answers

Installation failed trying to install MySQL ODBC connector on macOS High Sierra

I'm trying to install this mysql odbc connector on my macOS High Sierra machine, but I get this error: I tried installing it using installer in the hopes of getting information about what went wrong: ➜ ~ sudo installer -pkg…
L42
  • 3,052
  • 4
  • 28
  • 49
9
votes
6 answers

Can we use odbc only with java to connect to databases?

Do we always have to use jdbc with Java programs for making connectivity with database or can we use only odbc for connecting to databases with Java programs?
Mishthi
  • 1,101
  • 3
  • 12
  • 13
9
votes
2 answers

How to point to manual install Microsoft ODBC Driver 13

I'm attempting to setup the Microsoft ODBC Driver on platform.sh so that the PDO_SQLSRV and SQLSRV PHP extensions are available to me. apt and other sudo commands are limited. However, during the build I can set environment variables such as…
tylersDisplayName
  • 1,603
  • 4
  • 24
  • 42
9
votes
1 answer

What are the differences between OLEDB/ODBC drivers when connecting to SQL Server?

I have an SQL Server database, and I need to push data into it through vbscript, as well as pull data into Excel. I have found multiple connection strings, but no repository for the benefits of performance and functionality comparing them. The…
CWilson
  • 425
  • 10
  • 28
9
votes
6 answers

MS Access: How does one insert NULL into DateTime field

I have an MS Access database (intolerably enough), and communicating with it through PHP (ODBC). There is a DateTime field that I have to include in my INSERT statement. This field is NOT defined as "Required" in Access, meaning that it is indeed…
Teekin
  • 12,581
  • 15
  • 55
  • 67
9
votes
3 answers

Cannot import pyodbc on Mac

I am unable to import pyodbc on my Macbook Pro (running Mac OS X 10.10.5) and python version 2.7.10. I used pip to get it, and I have the latest version (3.0.10). It gives me the following error: $ python Python 2.7.10 (default, Jul 14 2015,…
Turix
  • 4,470
  • 2
  • 19
  • 27
9
votes
1 answer

PHP 5.5 and MSSQL driver: Installing ODBC Driver 11 in Windows Server 2012 R2

I have a Windows Server 2012 R2 with IIS 8.5, and another server with MSSQL 2012. I must install PHP in IIS and connect to MSSQL, and I don't have Internet available for Web PI. I managed to install PHP 5.5 and I'm able to run phpinfo(), and I also…
Hikari
  • 3,797
  • 12
  • 47
  • 77
9
votes
3 answers

What is the problem with ODBC as a technology?

Recently Zed Shaw (a programmer who blogs) mentioned that ODBC references should be removed from the popular python book Dive into Python. I have never worked with ODBC and I just wanted to understand why ODBC is so "bad". What are the pros and cons…
Andrew Kou
  • 7,105
  • 4
  • 21
  • 15
9
votes
2 answers

Installing ruby-odbc gem on mac os x 10.9 in RVM

I'm trying to get the ruby-odbc gem installed on a Mac OS X 10.9 under ruby-1.9.3-p547 for use with a rails 2.3.12 application which connects to a SAP system over ODBC. Environment Mac OS X 10.9 (Mavericks) RVM with ruby 1.9.3 and other rubies…
Grant Sayer
  • 2,330
  • 1
  • 23
  • 34
9
votes
2 answers

pdo_parse_params error in pdo_odbc.so whenever PHP starts in Fedora 20

I'm getting this error when I try to start PHP via command line: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_odbc.so' - /usr/lib64/php/modules/pdo_odbc.so: undefined symbol: pdo_parse_params in Unknown on…
Nathan Jones
  • 4,904
  • 9
  • 44
  • 70