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
8
votes
4 answers

OleDB INSERT command error

I have a database (i use MS ACCESS) I have this insert code, I can read data but got error when writing, I follow instruction but it didn't work here is my code OleDbConnection con = new OleDbConnection(@" provider=Microsoft.ace.Oledb.12.0; data…
Pyromancer
  • 2,429
  • 5
  • 19
  • 28
8
votes
3 answers

What is the difference between ODBC and OleDB?

I found this question here: OLEDB v/s ODBC Which gave me more information, but did not really answer the question I'm asking, so I shall proceed from there. I am working in C#. I'll spare you the long story about how I arrived at this conundrum,…
Kurisu
  • 812
  • 10
  • 18
7
votes
3 answers

Varying OleDb performance?

I'm currently trying to use OleDb/JET to export SQL Server data to an Excel 2003 file. I initially coded the export in a console application, and it worked fast enough. However, running the same code during an ASP.Net request takes roughly three…
rossisdead
  • 2,102
  • 1
  • 19
  • 30
7
votes
12 answers

What is the best and fastest way to write into Excel file using C#?

I am trying to write into excel file using OLEDB (without automation). I have around 500 rows of data which I get from some other application and then write into Excel file one by one using 'INSERT INTO..' Query. I am sure that there is no delay in…
Sam
7
votes
2 answers

C# Open DBF file

I'm having a problem opening a DBF file - I need to open it, read everything and process it. I tried several solutions (ODBC/OLEDB), several connection string, but nothing worked so far. The problem is, when I execute the SQL command to get…
Tomáš Bezouška
  • 1,395
  • 1
  • 10
  • 25
7
votes
1 answer

How to parameterize 12/30/1899 to SQL Server native client when DataTypeCompatility is on?

Short Version Trying to pass the datetime value 12/30/1899 to SQL Server, fails with Invalid date format - but only for the native client drivers, and only in DataTypeCompatiblity mode. Long Version When trying to use parameterized queries in ADO,…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
7
votes
2 answers

Microsoft.Jet.OLEDB.4.0 Converting Characters

I'm working with a CSV that contains characters like: ” and • I am reading the CSV via OleDb and the provider is Microsoft.Jet.OLEDB.4.0. when the data is loaded into the OleDbCommand, the characters are converted to the following respectively: “…
Craig
  • 6,869
  • 3
  • 32
  • 52
7
votes
3 answers

SQL Server Microsoft.ACE.OLEDB.15.0

I am writing a query to access what is in Excel sheet (2013 - 32 bit) and display that as a table in SQL Server 2014 SP2 64 bit. And I get this error: The OLE DB provider "Microsoft.ACE.OLEDB.15.0" has not been registered. I have tried installing…
Ahadu Melesse
  • 91
  • 1
  • 1
  • 8
7
votes
3 answers

Windows Search using OLE DB SQL Fields

I need to use Windows Search within my .NET application to search for certain files containing certain keywords. All of this seams easy enough using OLE DB to connect to the Windows Search data store on Windows 7. I have what I hope is a seriously…
Iain Kelwick
  • 201
  • 2
  • 7
7
votes
2 answers

Is there a way to force Microsoft.Jet.OLEDB to get date Columns in MM/DD/YYYY format from Excel?

I am having a problem with reading DateColumns from an excel sheet. Sometimes people use different date Formats and this brings a problem. Let's say when I expect 07/26/2010 from an Excel column I get 26-Jul-2010 because the user has changed its…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
7
votes
1 answer

Is Microsoft retiring, discountinuing or deprecating SSIS OLEDB provider with ODBC?

There were announcements back in 2011 about Microsoft SQL Server OLEDB access going retire, now I heard it has been deprecating starting SQL SERVER 2014? However it is not apparent from MSDN pages linked below about depreciated features in SSIS…
Narinder Sharma
  • 369
  • 1
  • 5
  • 14
7
votes
2 answers

Excel Cell Formatting Problem

I'm using the OleDB DataReader to get data from my excel files (but this problem occurs in DataTable.Fill as well). The thing is that I have a column that should return strings. All's fine and working but recently, an issue came up, because the…
Jonn
  • 4,599
  • 9
  • 48
  • 68
7
votes
1 answer

How to determine if VFPOLEDB provider is installed/registered?

I need to check in my program if the VFPOLEDB provider is installed/registered? I want to show a message and tell the user to download and install the provider. How do I check it in C#?
John Sheares
  • 671
  • 1
  • 12
  • 23
7
votes
1 answer

Is ODBC from MARS but ADO/OLEDB from VENUS?

Short question: I am finding I need to use MARS over ODBC but not over ADO/OLEDB, is that correct? Longer explanation: I just discovered my ODBC code (using "Driver={SQL Native Client}", MFC CDatabase code) needs to have MARS…
JB1
  • 131
  • 1
  • 5
7
votes
2 answers

Reading image from Access - parameter not valid

I have simple database in Access .mdb file, but I don't know how to deal with: "parameter not valid" exception when Im creating Image from stream. I'v read that I need to strip 78 bytes offset (from here) but I still get a "parameter not valid"…
Dariusz
  • 15,573
  • 9
  • 52
  • 68