Questions tagged [oledb]

OLE DB (Object Linking and Embedding, Database, sometimes written as OLEDB or OLE-DB) is an API designed by Microsoft for accessing data from a variety of sources in a uniform manner.

It is a set of interfaces implemented using the Component Object Model (COM); it is otherwise unrelated to OLE. It was designed as a higher-level replacement for, and successor to, ODBC, extending its feature set to support a wider variety of non-relational databases, such as object databases and spreadsheets that do not necessarily implement SQL.

OLE DB separates the data store from the application that needs access to it through a set of abstractions that include the datasource, session, command and rowsets. This was done because different applications need access to different types and sources of data and do not necessarily want to know how to access functionality with technology-specific methods. OLE DB is conceptually divided into consumers and providers. The consumers are the applications that need access to the data, and the provider is the software component that implements the interface and therefore provides the data to the consumer. OLE DB is part of the Microsoft Data Access Components (MDAC) stack. MDAC is a group of Microsoft technologies that interact together as a framework that allows programmers a uniform and comprehensive way of developing applications for accessing almost any data store. OLE DB providers can be created to access such simple data stores as a text file and spreadsheet, through to such complex databases as Oracle, SQL Server and Sybase ASE. It can also provide access to hierarchical datastores such as email systems.

However, because different data store technologies can have different capabilities, OLE DB providers may not implement every possible interface available to OLE DB. The capabilities that are available are implemented through the use of COM objects - an OLE DB provider will map the data store technologies functionality to a particular COM interface. Microsoft describes the availability of an interface as "provider-specific," as it may not be applicable depending on the database technology involved. Note also that providers may augment the capabilities of a data store - these capabilities are known as services in Microsoft parlance.

http://en.wikipedia.org/wiki/OLE_DB

4441 questions
6
votes
3 answers

Good OleDB/ODBC provider for PostgreSQL

I'm in need of a functional OleDB data provider for PostgreSQL. It should be similar to the ODBC provider for MySQL. See http://dev.mysql.com/downloads/connector/odbc/5.1.html
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
6
votes
1 answer

Is there a difference in the underlying protocol for ODBC, OLEDB & ADO.NET

When communicating to a SQL Server database using one of the typical systems, ODBC, OLEDB or ADO.NET, is the underlying basic protocol the same? Are all the differences between these systems basically just client side issues? Is this all just…
John Dyer
  • 2,316
  • 1
  • 21
  • 27
6
votes
2 answers

DBNull in non-empty cell when reading Excel file through OleDB

I use OleDB to read an Excel file. One of the columns has a "Common" format and contains both strings with letters and values consisting of numbers only. String values are retrieved without problem, but pure numerical values are retrieved as…
flashnik
  • 1,900
  • 4
  • 19
  • 38
6
votes
1 answer

Excel data extraction - Issue with column data type

I am writing a C# library to read in Excel files (both xls and xlsx) and I'm coming across an issue. Exactly the same as what was expressed in this question, if my Excel file has a column that has string values, but has a numeric value in the first…
John Bustos
  • 19,036
  • 17
  • 89
  • 151
6
votes
3 answers

How to specify the delimiter when importing CSV files via OLEDB in C#

I need to perform a complex import in a Microsoft SQL Server 2000. Since doing it in a DTS is too complicated, I'm trying to do it with a little C# program, but I'm having problems when I need to import a CSV files: this file is using semicolons as…
Albireo
  • 10,977
  • 13
  • 62
  • 96
6
votes
2 answers

How to use VFPOLEDB to get DBF information

I can use GetSchemaTable and GetXMLSchema to get information about field types, sizes etc. from a Foxpro DBF opened with VFPOLEDB but can not get any information pertaining to what indexes are in the tables/CDX. I dont want to use the indexes, just…
CottonHill
  • 73
  • 6
6
votes
3 answers

Retrieve pictures from Excel file using OLEDB

I have an Excel sheet with two column, one is a number , and second column have a picture. i want to read these data from c# with oledb connection, i can read number easily , but pictures is not contained in second column , so in c# i just get first…
CBoy
  • 63
  • 1
  • 3
6
votes
1 answer

How to read a CLOB column in Oracle using OleDb?

I have created a table on an Oracle 10g database with this structure : create table myTable ( id number(32,0) primary key, myData clob ) I can insert rows in the table without any problem, but when I try to read data from the table…
Thibault Falise
  • 5,795
  • 2
  • 29
  • 32
6
votes
2 answers

"Data type mismatch in criteria expression" when saving record to Access from C#

I am getting a "Data type mismatch in criteria expression" error when inserting a new record into an access database. The application runs fine on UK computers, but on South African computers it throws this error. This makes me think it's something…
NickG
  • 9,315
  • 16
  • 75
  • 115
6
votes
1 answer

multi-sheet import with oledb netting "_xlnm#_FilterDatabase" as sheet names

i have an excel with multi-sheets that i want to import the code is fairly simple and basic and should work but my sheetnames keep coming back as "_xlnm#_FilterDatabase" in the debugger and is the root of my prob here is the relevant portion of the…
toy
  • 422
  • 1
  • 7
  • 19
6
votes
4 answers

Reading DBF with VFPOLEDB driver

I am using VFPOLEDB driver to read DBF files and I keep getting this error and I am not sure why and how to fix the problem: The provider could not determine the Decimal value. For example, the row was just created, the default for the Decimal…
John Sheares
  • 671
  • 1
  • 12
  • 23
6
votes
2 answers

SQLCommand/SQLConnection vs OleDbCommand/OleDbConnection

Does it make a difference whether I use SQLCommand/SQLConnection instead of OleDbCommand/OleDbConnection. Do I get any advantages out of that, from a API comfortability, feature, performance or security perspective? Or any other perspective?
bitbonk
  • 48,890
  • 37
  • 186
  • 278
6
votes
1 answer

System.Data.OleDb.OleDbException: Invalid internet address. How do you connect to excel files located on a webserver using OleDb

I'm trying to create an OleDb connection to an Excel file that is located on a SharePoint server. The example code I'm playing with at the moment throws an OleDb exception "Invalid internet address": public static void ConnectToRemoteExcelFile() …
Edward Wilde
  • 25,967
  • 8
  • 55
  • 64
6
votes
1 answer

Error Inserting Cast data and null fields C#

I'm working on Visual Studio 2012 using an MS Access file as Database and having a bunch of trouble with this insert: cmd.Parameters.Add(new OleDbParameter("@codigo", cal.CodEtiq)); // Value = int cmd.Parameters.Add(new OleDbParameter("@data",…
6
votes
2 answers

Syntax error in INSERT INTO statement using OleDb

Good day. I am trying to make a registration page and have the information stored in a database. I made the database using Microsoft Access. I get: Syntax error in INSERT INTO statement every time I press the 'Register' button. I have already…
Meruru
  • 63
  • 1
  • 1
  • 4