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

OleDB JOIN Syntax Not Correct

I recently asked a question on StackOverflow (MySQL Returns All Rows When field = 0) regarding a query statement not working in MySQL. I now have a very similar problem, this time using OleDB where I am trying to use a join to include fields that…
CBreeze
  • 2,925
  • 4
  • 38
  • 93
1
vote
0 answers

How to read value of a cell which refrences other sheet cells?

I have a cell with below formula on sheet_B, =IF(sheet_A!$E$66="OOO","XYZ","ABC") and I am reading it using OleDb, as below cmd.CommandText = "SELECT * FROM ["B"]"; using data set, the cell value always returns ABC, irrespective of sheet_A column…
1
vote
1 answer

Searching values via a datagridview

i am try to search for a specific value in a database by entering text into a textbox and then using SQL to query the database and then display results in the datagridview. here is the code: Private Sub TextBox1_TextChanged(ByVal sender As…
User59
  • 487
  • 4
  • 19
1
vote
1 answer

The Microsoft jet database engine could not find object while reading dbf file

I am facing very strange issue. I have written class to which reads dbf file through oledb connection. I have downloaded dbf file from internet and it is reading all data correctly. DBF file location: E:\Projects\SLAVE.DBF I am facing following 2…
Muneem Habib
  • 1,046
  • 4
  • 18
  • 49
1
vote
0 answers

"Run-Time error '-2147467259 (80004005) Unspecified error" when attempting to reconnect

I am building an Excel spreadsheet to acquire some data (table format) from a server using a customized Excel Add-in. After that I need to modify that table and I thought the best way to do it is using a ADODB connection to the same Excel…
A Torre
  • 219
  • 1
  • 7
  • 18
1
vote
1 answer

What are the available keywords in OleDB for mrOleDB.Provider.2?

I am working on a tool which needs to autocomplete keywords of an OleDB command. By keywords I mean SELECT UPDATE FROM WHERE etc. I've been searching google for quite a while now without being successful in finding a list of all avaiable…
Marv
  • 748
  • 11
  • 27
1
vote
1 answer

Classic ASP: Microsoft OLE DB Provider for ODBC Drivers error '80004005'

I am getting this error: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified functions.asp, line 258 This is function.asp line 258: Conn.Open…
jomsk1e
  • 3,585
  • 7
  • 34
  • 59
1
vote
1 answer

how to solve error System.Data.OleDb.OleDbPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

i am having this error while uploading my website to server but in local host its working fine how to solve this error Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not…
Mango People
  • 31
  • 1
  • 1
  • 7
1
vote
1 answer

SSIS - Can't Read XML - The file is being used by another process

I am not able to read an XML file using SSIS. My goal is to read it and then insert the data into a MSSQL database (it would be a lookup table) This is my data flow so far where the process "Leer Usuarios" (Read Users in english) is the one which…
Gonzalo.-
  • 12,512
  • 5
  • 50
  • 82
1
vote
0 answers

Create link in Excel to Access Table

I'm creating a new Excel sheet in a C# project using OLEDB. I then want to add a link to a certain data in a table in an Access Database using an SQL query. I know that it's possibly using Microsoft Interop and QueryTables. Is this possible without…
SBoo
  • 11
  • 1
1
vote
2 answers

How to get names of all sheets in excel

I want to create a method to get names of all sheets in a workbook. My workbook has 7 sheets. If I want to read and save names of sheets to the variable excelSheets, I receive 9 names, where two names response to non-exists sheets ("lists$" and…
1
vote
0 answers

Why does READPAST work in SSMS but not via OLEDB?

We're trying to use READPAST in a SQL select statement to extract data from a SQL Server 2008 database using QlikView, which is set up to use OLEDB connection to the database. The reason for this being that we want to avoid being locked by other…
x3ja
  • 928
  • 5
  • 19
1
vote
0 answers

How to Prevent Access From Freezing When Pasting PDF Picture Into OLE Object

I have a form in Access where users paste images into an OLE object and then after clicking a button it exports the pictures to a file on a network drive to be recalled later. This works fine for screen shots and copying things out of paint, but…
110SidedHexagon
  • 555
  • 2
  • 14
  • 37
1
vote
1 answer

Insert Query in C# with MS access Database

When I am inserting data in MS access database .it is not giving any error but data not inserted in database code: private void btnsubmit_Click(object sender, EventArgs e) { int row = dataGridView1.RowCount; for (int i = 0; i…
shweta
  • 91
  • 1
  • 2
  • 11
1
vote
1 answer

OLEDB SELECT TOP 1 / MAX() only returning 4 digits

Guys I'm doing a query to DB using OLEDB with the following Command: OleDbCommand maxCommand = new OleDbCommand("SELECT TOP 1 id AS maxId FROM `tableName` ORDER BY id DESC", AppConstants.OLEDBCONNECTION); And then printing the…
Vítor Martins
  • 1,430
  • 4
  • 20
  • 41