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
1
vote
1 answer

Comparing performance of OLEDB and Ado.Net

I'm trying to get similar performance to Ado.Net with OLEDB but without success. The best I can get is 50% slower than Ado.Net so I think i'm doing something wrong. I need a forward only reading of recordset, no need to update. …
alangab
  • 849
  • 5
  • 20
1
vote
1 answer

What are the differences between using OLEDB and ODP.NET to connect to an Oracle database?

I have two small VB.NET applications that connect to the same Oracle database. One uses the OLEDB provider, and the other uses Oracle's ODP.NET. Should I expect to see problems with the OLEDB provider, as it's less 'native' to Oracle? Thanks for…
Riddari
  • 1,713
  • 3
  • 26
  • 57
1
vote
1 answer

Oracle connection prioritizer

Maybe that will sound odd, but I need to schedule priority on oracle connections. It goes like that: I have one main 'connection' that will pump data out of oracle, and it should be as fast as it can be. I have two other connections that should…
Daniel Mošmondor
  • 19,718
  • 12
  • 58
  • 99
1
vote
0 answers

OleDb data type mismatch in criteria expression

I'm currently trying to write into an excel file. I use this piece of code: public void UpdateExcelFile(string dir, string sheet, string sql) { System.Data.OleDb.OleDbConnection MyConnection; System.Data.OleDb.OleDbCommand…
Canox
  • 557
  • 1
  • 7
  • 20
1
vote
1 answer

Data Driven Coded UI test: How to set datasource for Access database (oledb)?

I wrote a Visual Studio data driven coded UI test that uses data from an Excel spreadsheet. The connection looks like this: [TestMethod, DataSource("System.Data.Odbc", @"Dsn=Excel Files;Driver=(Microsoft Excel Driver (*.xls)}; dbq=C:\Test…
ZtyX
  • 11
  • 2
1
vote
0 answers

Store content from Excel file with image in DataTable

I searched around the Internet but didn't find something that matches my case. I'm using OleDb to read Excel files. Now I have one file which contains an Image (together with Text). Is it possible somehow to store not only the text from the Excel…
Canox
  • 557
  • 1
  • 7
  • 20
1
vote
1 answer

How to ignore MS Access "Type Conversion Error" when running SQL statement from C#?

I have an MS Access database with a table with hundreds of columns. When running my SQL INSERT INTO query, one (or more) of the fields cause a "Type Conversion Error", which is fine because it works anyways. When I run this process of SQL INSERT…
Kangze Huang
  • 351
  • 7
  • 22
1
vote
1 answer

storing dataset in datagridview to a new access db file c#

Actually I have some data loaded from a access db file in datagridview (in my winform application) and after making changes on dataset I want to save it in a new table of a new access db file through save file dialogue. I've searched about this but…
1
vote
3 answers

Numeric field width in DBF file inconsistent when created with oleDB (.NET)

OleDB always add one more digit to DBF numeric fields when we create them. A command like this: CREATE TABLE [file1.DBF] ( [MY_FIELD] NUMERIC(1,0) NULL) will create a field that can contains 2 digits (or one digit and a minus sign). What's funny is…
Simon T.
  • 898
  • 1
  • 9
  • 16
1
vote
1 answer

OleDbDataAdapter internal error: invalid row set accessor. Status=UNSUPPORTEDCONVERSION

I am currently trying to move an application from a Microsoft Access database to an SQL Server Compact Edition one. I have managed to convert the database using SSMA and SQL Toolbox, but I am having some errors using the old c# code for queries (as…
mbdavis
  • 3,861
  • 2
  • 22
  • 42
1
vote
2 answers

C# TransactionScope with OleDB and Oracle

My current application has all database operations in a giant Using statement with a connection to ensure that the transaction is committed or rolled back in full, currently if i have common methods they pass the current open OleDbConnection so that…
Dominic Cotton
  • 789
  • 10
  • 34
1
vote
1 answer

SSIS Teradata - Unable to parse volatile table creation

I have 3 parts to a teradata query CREATE MULTISET VOLATILE TABLE ... SELECT QUERY -- Using the volatile table DROP TABLE -- Volatile table Works fine in Teradata SQL assistant, Throws me an error Data definition not valid unless solitary in SSIS…
KeenUser
  • 5,305
  • 14
  • 41
  • 62
1
vote
2 answers

IMEX=1 seems to have no effect

I use ADODB to pull data from Excel file to another Excel file without opening the source. I have a strong suspicion that the IMEX=1 parameter is not accepted in my connection. I start my connection like this: con1.Open…
ZygD
  • 22,092
  • 39
  • 79
  • 102
1
vote
1 answer

SQLSERVER / Foxpro Linked server issue

I am currently performing a migration of data from an old legacy system. This system runs on FoxPro tables which I have had no personal exposure to until now. I have installed a fresh copy of SQL2014 32 bit (no 64 bit driver for Visual FoxPro) and…
Matthew Baker
  • 2,637
  • 4
  • 24
  • 49
1
vote
3 answers

Chain query results to multiple combo boxes

I have several dependent combo boxes (CB) that pull data from different tables. It can be the selected value or a lookup value. For example I will display text (Name) in the box, when selected, I need to lookup the corresponding int (ID) and use…
ArtR45
  • 39
  • 5