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

SQLite OLE DB driver for C++ (MFC)

I am looking for OLE DB driver to acces SQLite. Is there any? I need it to use under MFC, not .NET. I have found this but it is .NET driver: http://CherryCitySoftware.com/ccs/Home/Default.aspx and this but I have no references to this:…
Martin Pilch
  • 3,245
  • 3
  • 38
  • 61
1
vote
2 answers

Ms Access. System.Data.OleDb.OleDbException: No value given for one or more required parameters

I create SelectCommand this way: OleDbCommand SelectCommand = new OleDbCommand( "SELECT * FROM TableName WHERE Date Between dt_begin = ? and dt_end = ?", connection); SelectCommand.Parameters.Add("dt_begin", OleDbType.Date).Value = new…
InfernumDeus
  • 1,185
  • 1
  • 11
  • 33
1
vote
1 answer

Is there a way to ensure the correct OleDB provider gets used when PlatformTarget=AnyCPU?

We've discovered that if we read from an Excel file using the Microsoft.ACE OLEDB provider from a 64-bit machine with a 32-bit version of Office installed, it will throw an exception if built for platform "AnyCPU". The 'Microsoft.ACE.OLEDB.12.0'…
Rachel
  • 130,264
  • 66
  • 304
  • 490
1
vote
1 answer

C# OleDB CSV Import converting characters on its own

I have a CSV document with the headers shown as below: Date,Time,TIRCA-501 [°C],PIRCA-501 [MPa],TIRCA-502 [°C],TIRCA-503 [°C],TIR-504 [°C],WTRIA-501 [°C] (The actual csv file is much more longer than that but I've just cut out the relevant…
TtT23
  • 6,876
  • 34
  • 103
  • 174
1
vote
1 answer

Unable to update current time in a excel using oledb

I am trying to insert current time to a Time column in the excel using the below code through an oledb connection but when I check the excel the value inserted is in Date format. Value updated in excel - 1/0/1900 3:54:11 PM Expected Value - 3:54:11…
Ash1994
  • 247
  • 1
  • 5
  • 16
1
vote
1 answer

Troubleshooting Could not find installable ISAM error

I have 32-bit MS Office 2013 Installed, along with the 32-bit office redistributable and a small c# console application set to compile to 32-bit. The following code causes an OleDbException stating "Could not find installable ISAM." public void…
Joe
  • 5,389
  • 7
  • 41
  • 63
1
vote
3 answers

Run multiple commans or sql script using OLE DB in SQL Server

It is possible to run multiple commands or sql script using OLE DB? For example to run sql script to create database and its structure (tables, indexes, stored procedures...). When I use CCommand class, I can run only one command. How can I run SQL…
Martin Pilch
  • 3,245
  • 3
  • 38
  • 61
1
vote
1 answer

Sql Query giving error missing operator while using row_number in it

I'm trying to find unique rows based on three different columns Here is the query I've written but I get an error Syntax error (missing operator) in query expression 'row_number() OVER ( partition BY F1, F2,F3 order by F1) Here is the query SELECT…
1
vote
2 answers

UNSUPPORTEDCONVERSION Internal Error for OleDbDataAdapter when converting DateTimeOffset and Time data types

In my SSIS package (SQL Server 2012) I set a stored procedure result set in an object variable using the Execute SQL Task. The connection manager I use has the following connection string: Data Source=localhost;Initial…
lucazav
  • 858
  • 9
  • 24
1
vote
0 answers

OleDb driver to generate xml from excel, missing data from excel file

I have a short piece of c# code to generate an xml file, from a given excel file. It's working fine. System.Data.OleDb.OleDbConnection MyConnection; System.Data.DataSet ds; System.Data.OleDb.OleDbDataAdapter MyCommand; MyConnection = new…
Kypaz
  • 411
  • 3
  • 11
1
vote
1 answer

ExcelLibrary throwing Unauthorized Access Exception when attempting to create

As the title describes, my program is throwing an UnauthorizedAccessException when attempting to create an Excel file with the ExcelLibrary Library, which is strange given my computer hasn't got any restrictions regarding that. My code: using…
1
vote
1 answer

Microsoft Access OledbDataReader read values error

I am connecting to MS Access file with jet Engine x64,but also worked x86 platform. I am getting error while trying to read data long sizeCounter = 0, rowIndex = 0; var secondValues = new object[BatchSize][]; for…
Elyor
  • 900
  • 1
  • 12
  • 26
1
vote
1 answer

Dapper, MS Access, Integers and "no value given for one or more required parameters"

I keep getting the error "no value given for one or more required parameters" on the third attempt to insert in the code below. The first two attempts work fine. I'm running in .NET 4.0, against MS Access in VS 2012. And this problem appears to be…
EDanaII
  • 197
  • 16
1
vote
0 answers

Typed Data between Excel and VB.Net

Creating an application to run canned queries. The queries use input data provided by end users, in the form of Excel worksheets. Knowing the needed input column data types beforehand, I've created typed datatable objects. How can I verify the…
Greg
  • 414
  • 4
  • 12
1
vote
1 answer

How to check cell contain filter or not in excel sheet through oledb reader?

How to check cell contain filter or not in excel sheet through oledb excel reader? want method or code for the same..
LuckyS
  • 553
  • 5
  • 17
1 2 3
99
100