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
3 answers

How can I log query time?

I have few oledb connections like this: try { OleDbConnection Connection8; using (Connection8 = new OleDbConnection("Provider=MSDAORA.1;Data Source=DATABASE:1521/orcl;Persist Security Info=True;Password=PASSWORD;User ID=USERNAME;")) { …
onur
  • 5,647
  • 3
  • 23
  • 46
1
vote
1 answer

Fastest OLEDB read from ORACLE

What would be the fastest way of retrieving data from the Oracle DB via OLEDB? It should be portable (have to work on Postgres and MS SQL), only one column is transfered (ID from some large table). Current performance is 100k rows/sec. Am I…
Daniel Mošmondor
  • 19,718
  • 12
  • 58
  • 99
1
vote
1 answer

C# OleDb INSERT INTO overflow exception

My query looks like this: INSERT INTO tblFiles (filename,downloadname,description,length,parts,checksum) VALUES ('IMG_0228.JPG','file1','description1' ,2694310,1925,26931139928208758813621215525179134210220) I am using an access database…
Foxman
  • 189
  • 13
1
vote
1 answer

Data type mismatch in criteria expression Oledb Access database

I'm getting the error: Data type mismatch in criteria expression When using this code. And using Access database. OleDbConnection bab = new OleDbConnection(); bab.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data…
1
vote
1 answer

VS 2015: Getting "Exception thrown: 'System.Data.OleDb.OleDbException' in System.Data.dll" When Attempting Connect to Excel

Okay so here is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using…
1
vote
3 answers

exception 2147217900 in oledb database

im trying to update a database table with values in textboxes that have been calculated previously. the calculations work fine and the textboxes have been converted to decimals.: try { OleDbConnection con = new…
iboss
  • 41
  • 1
  • 7
1
vote
2 answers

How to retrieve actual OleDb table schema (excluding additional table columns)

When I run this code it is also retrieving some other fields which are not present in the table. How can I overcome this? Dim conn As New OleDb.OleDbConnection 'Create a connection string for an Access database Dim strConnectionString =…
1
vote
2 answers

Counting first table in joined tables

I have problem in my sql queries. I have 2 tables (a. Sales, b. SalesDetail). With rows: Sales SalesDetail ------ ----------- SaleNo : MakeDate IDSalesDetail: SaleNo : ItemCode : ItemPrice :…
Fura
  • 11
  • 2
1
vote
1 answer

Why does DENSE_RANK cause an error when used in SSIS query against ORACLE using OLE DB?

This query: SELECT DENSE_RANK() OVER (PARTITION BY UPPER(ANUMID), UPPER(PRODNUMID) ORDER BY DATE_ADDED ASC) AS DRANK , ANUMID , PRODNUMID , STATUS_FDATE , STATUS_XDATE , ROWSTATUS FROM AGCOMN The query ranks the rows in each…
thePulse
  • 31
  • 3
1
vote
2 answers

how to add parameter

How to add parameter i use i have to insert multi value for making submition form string connectionString12 = ConfigurationManager.ConnectionStrings["mobile_db"].ConnectionString; OleDbConnection con = new…
azeem
1
vote
2 answers

Read all columns in excel

How do I read an Excel spreadsheet having blank column. I have spreadsheet in below format: I am trying to read the excel file with this code: string query = "SELECT * FROM [Sheet1$]"; using (OleDbConnection connection = new…
Richa
  • 3,261
  • 2
  • 27
  • 51
1
vote
1 answer

ConnectionString property. The connection's current state

Here is the current coding for my login form Option Strict On '------------------------------------------- ' Imports required for DB Connectivity '------------------------------------------ Imports System.Data.OleDb Imports…
James Swan
  • 81
  • 2
  • 11
1
vote
1 answer

Using '*' in SQL FROM statement to access Excel cell range

I have a script that converts an .xlsx file to .csv file but this script uses a cell range in Excel to read the data. The script is working but I wish to expand it to prevent possible user-bugs. The query to select a Excel cell range (in SQL): …
Alim
  • 227
  • 1
  • 4
  • 18
1
vote
0 answers

Generating report in Excel

I am developing a VB10 application which will log the data to MS Access database and will generate a report in Excel. What I propose to do is every time when the user clicks "Generate Report" button, a new Excel file will open and the data from…
Prashant
  • 93
  • 9
1
vote
1 answer

Importing Excel gives error "System.InvalidOperationException: The Microsoft.Jet.OLEDB.4.0' provider is not registered"

I had an old Project which ran fine. Now I am getting the error while trying to import from Excel: System.Invalidoperationexception the 'microsoft.jet.oledb.4.0' provider is not registered I am able to login. I tried changing platform of…
mark
  • 623
  • 3
  • 21
  • 54