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
10
votes
1 answer

Candlestick multiple Y values

I am on a mission to make a candlestick graph using MSChart in a windows form. I already succeeded to make a 3D bar chart with no problems. But after a long search on the internet, Microsoft's source code (WinSamples) and a lot of headscratching I…
Jens
  • 113
  • 1
  • 1
  • 6
10
votes
3 answers

System.Data.OleDb.OleDbException: Could not find installable ISAM

I have scoured the net, and found many people asking this, yet none have fixed my answer. I have a Connection Class, and a Method that uses that Class in a page. DataConn.cs public static OleDbConnection ConnectExcel() { //Store the connection…
TheGeekZn
  • 3,696
  • 10
  • 55
  • 91
10
votes
4 answers

How to get list of ONLY excel worksheet names in Excel using OLEDB; filter out non-worksheets that show up in metadata

I have an issue getting worksheet names from an Excel spreadsheet using OLEDB. The problem is that when I use GetOleDbSchemaTable, the resulting DataTable has more than just the actual worksheet names; it has extra rows for "Tables" that I can only…
Jim
  • 6,753
  • 12
  • 44
  • 72
9
votes
7 answers

When should I be using Odbc, OleDb, SQLClient? What are the trade-offs

I am starting off with a SQLServer database. So it would seem that I should use System.Data.SqlClient namespace. But, there is a chance that we might shut down our SqlServer database and go to MySql or Oracle. For this reason, I am coming up with a…
Raj Rao
  • 8,872
  • 12
  • 69
  • 83
9
votes
4 answers

SQL Server to MySQL data transfer

I am trying to transfer bulk data on a constant and continuous based from a SQL Server database to a MYSQL database. I wanted to use SQL Server's SSMS's replication but this apparently is only for SQL Server to Oracle or IBM DB2 connection.…
JBone
  • 3,163
  • 11
  • 36
  • 47
9
votes
1 answer

Best way to check OleDbConnection state

Apparently (MSDN) sometimes OleDbConnection.ResetState() does nothing, so even if the connection fails OleDbConnection.State will still be set to Open. I am looking for best workaround for this, so that when I check connection state I can avoid…
David Božjak
  • 16,887
  • 18
  • 67
  • 98
9
votes
3 answers

OLEDB Connection has no refresh date

I need to programatically check the refresh date on a number of OLEDB data connections in Excel to SQL tables and views. They're all configured the same way and use the same connection string, and I'm checking them in VBA using:…
C Dieguez
  • 342
  • 1
  • 2
  • 12
9
votes
4 answers

How to upload only non-empty rows of Excel spreadsheet using oledb in C#?

I am importing excel sheet to DataTable using oledb connection as below. private static DataTable UploadExcelSheet(string fileName) { DataTable uploadDataTable; using (OleDbConnection objXConn = new OleDbConnection()) { …
Rahul R
  • 181
  • 1
  • 1
  • 5
9
votes
7 answers

Could not find installable ISAM

I have the following code : string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\db\suc.xls; Extended Properties=""Excel 12.0;HDR=YES;"""; // Create Connection to Excel Workbook using (OleDbConnection connection = …
Alex
  • 10,869
  • 28
  • 93
  • 165
9
votes
1 answer

What are the differences between OLEDB/ODBC drivers when connecting to SQL Server?

I have an SQL Server database, and I need to push data into it through vbscript, as well as pull data into Excel. I have found multiple connection strings, but no repository for the benefits of performance and functionality comparing them. The…
CWilson
  • 425
  • 10
  • 28
9
votes
5 answers

Reading Limited Rows from Excel File Uploaded on IIS

I have an asp.net mvc app hosted on IIS. I have a form from where users upload excel files containing 50k+ rows. I read the excel file with the following C# code. public DataTable GetExcelDataTable(string fileName) { string…
levi
  • 3,451
  • 6
  • 50
  • 86
9
votes
3 answers

Query a datatable where text contains

Building on this question: how to run query on dataset? I'm trying to query a datatable from my dataset where the text contains a string, similar to the String.Contains method or the sql LIKE operator. Here's what I've tried so far: private void…
Alex
  • 689
  • 1
  • 8
  • 22
9
votes
2 answers

SSIS - "External table is not in the expected format" and .xls files

In a SSIS ETL transformation I'm trying to load a certain .xls file. I have several identical files with similar schemas, and all of them work correctly. However this one file throws the "External table is not in the expected format" error. This is…
Carlos Vergara
  • 3,592
  • 4
  • 31
  • 56
9
votes
1 answer

How to SELECT from any spreadsheet in Excel File using OleDbDataAdapter

I'm using OleDbDataAdapter to extract DataSet from excel file, but I have problems with SELECT statement inside DataSet excelDataSet = new DataSet(); using (OleDbConnection con = new System.Data.OleDb.OleDbConnection(connectionString)) { …
Bryuk
  • 3,295
  • 10
  • 45
  • 74
9
votes
1 answer

Operating System does not recognize installed OLE DB provider

I have a 32 bit Windows 7 machine. I am trying to access an excel sheet by creating a linked server in SQL Server 2012. Below is my error. Msg 7403, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been…
LCJ
  • 22,196
  • 67
  • 260
  • 418