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

Issue reading in CSV file. + and - Characters being read as 0

I am experiencing a rather weird issue will reading in a small csv file using the Microsoft.ACE.OLEDB.12.0 engine. Dim cN As ADODB.Connection Dim RS As ADODB.Recordset Set cN = New ADODB.Connection Set RS = New ADODB.Recordset …
1
vote
1 answer

Updating Excel 2003/ 2007 Cell value from C#

I have an Excel sheet with no column names. I want to update values of individual cells without using a WHERE condition. For example Cell A1 is empty and I would like to insert string value "Foo" into it. Below is what I have tried but its not…
Shayam
  • 27
  • 1
  • 6
1
vote
0 answers

Select specific columns in Excel using C#

I want to select part of the columns from Excel, but not all of them. What query should I use? My query works if I use select *, but not 4 specific columns. I am using an OLEDB connection string. The result I get when I run my query is: No value…
Ankita_K
  • 653
  • 2
  • 12
  • 21
1
vote
1 answer

When I try read Excel with OLE DB all values are empty

I have done a little program to parser excel. It works fine only when before to execute it I open Excel file manually (is not it strange?). I.e. first I open excel file, second I execute program and I get good results If I don't open excel before…
robBerto
  • 196
  • 2
  • 14
1
vote
1 answer

How to force update dependent cell when updated any excel cell using c# code and oledb?

How to force update dependent cell when updated any excel cell using c# code and oledb? My site is hosted in cloud environment. User click on button and at that time my code get required values from database and update the few excel cells and prompt…
Rahul Kale
  • 11
  • 4
1
vote
1 answer

How to add several OldDbParameters with values to a single OleDbCommand?

Guys I'm trying to insert data into a db and I'm using the following code: String connectionString = "Provider=vfpoledb;Data Source=C:\\TESTE;Collating Sequence=machine;"; OleDbConnection FPDBConn = new…
Vítor Martins
  • 1,430
  • 4
  • 20
  • 41
1
vote
4 answers

File 'phd.prg' does not exists

I have a visual fox pro 9 database, and i am trying to connect it from my desktop application. i can get data from almost all tables except one table. when i run query to select data from "test.dbf" it throws exception saying File 'phd.prg' does…
Baigoo
  • 31
  • 5
1
vote
0 answers

alternate for Oleb DB importing excel file

Maybe someone can help me with the following problem: I want to import a excel file and read the columns in to the database. I used OleDB provider so far: string constr = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended…
user3114347
  • 349
  • 1
  • 5
  • 19
1
vote
3 answers

how to read an excel file that is readonly from c#?

I am trying to do that by using OleDb but the file is protected by a password which i dont have. So it gives the following error when i open the connection: Cannot update. Database or object is read-only. How can i solve this? thanks
medusa
  • 521
  • 3
  • 6
  • 21
1
vote
2 answers

Queries appear to work, but don't actually affect Access database

I've added an access db to my project as a datasource. So I get the automatically generated tableadapters class and therefore, access to the table adapter instance which includes the connection string. I'm using this to open a connection to my db so…
1
vote
3 answers

Delete & Update query doesn't work in ADO.NET

I am trying to DELETE a record of Access Database using OleDbCommand class of Connected Architecture using System.Data.OleDb; using System.Data; protected void Button2_Click(object sender, EventArgs e) { String x = "Connection…
Palak
  • 1,276
  • 4
  • 17
  • 24
1
vote
1 answer

DDX_Text with DBTIMESTAMP variable, which library do I need to reference?

I want to use DDX_Text with a member variable of type DBTIMESTAMP: class CSerialView : public CFormView { DECLARE_DYNCREATE(CSerialView) //..... public: DBTIMESTAMP m_ProductionDate; // read from OLEDB consumer class …
Bart
  • 547
  • 3
  • 16
1
vote
2 answers

syntax error in the INSERT INTO statement

I am trying to insert some values in User table, there are 4 attributes in User-User_Name varchar(20) User_Password varchar(20) Entry_Date timestamp Entry_Time timestamp I have tried a lot but I'm not able to find out the problem. using…
1
vote
1 answer

OledbException row-00001 cannot allocate memory

I am trying to get data from a oracle database using c#. I was using System.Data.OracleClient.dll but since this is obsolete i decided to change this to System.Data.Oledb. My connection: connection = new…
Maiko Kingma
  • 929
  • 3
  • 14
  • 29
1
vote
2 answers

Confusing error E_UNEXPECTED(0x8000FFFF)

No error message available, result code: E_UNEXPECTED(0x8000FFFF). I couldn't find any solutions through google. Encountered this while parsing an excel file. Does anyone know why this even occurs? It would be fine and all if it allowed me to…
Jonn
  • 4,599
  • 9
  • 48
  • 68