Questions tagged [oledbexception]

OleDBException is an exception thrown regarding an OLE DB data source.

More information can be found at the this website: Microsoft Developer Network - OleDbException Class.

138 questions
2
votes
6 answers

Jet DB Engine - SSIS OLEDBERROR - Unexpected error from external database driver (1)

My SSIS job hosted in DEV server got failed due to the the following SSIS Error Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult:…
Viswa
  • 745
  • 10
  • 30
2
votes
1 answer

Windows indexing search - OleDbException Not Specified Error

I'm getting an exception (OleDBException: Not specified Error) when trying to search in indexed files in a folder on my D-drive (D:\TaalTipsDocumenten). I know this piece of code worked in the past (2 months ago), but when trying to continue working…
Dennis
  • 164
  • 1
  • 9
2
votes
0 answers

IErrorInfo.GetDescription failed with E_FAIL(0x80004005) for excel with VSTS 2015

Previous I was getting "'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." So I executed below 2 steps: 1. Download the file locally You can download the installation here:…
Shruti Shinde
  • 43
  • 1
  • 6
2
votes
2 answers

OleDb Exception

For 5 hour searching i can't find my mistake. I get this exception. What is wrong? An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in MyDictionary.exe Additional information: Syntax error in INSERT INTO statement. My…
2
votes
1 answer

OleDbConnectionStringBuilder returning value incompatible with OleDbConnection

We have run into an unexpected exception thrown when opening a OleDbConnection created from the return value of the OleDbConnectionStringBuilder.ConnectionString property. Were using the OleDbConnectionStringBuilder to update any relative DataSource…
karmasponge
  • 1,169
  • 2
  • 12
  • 26
2
votes
0 answers

It always go to OleDbException

using(OleDbConnection con = DAL.GetConnection()) { OleDbTransaction transaction = null; try { con.Open(); transaction = con.BeginTransaction(); if…
2
votes
1 answer

The Microsoft Office Access database engine cannot open or write to the file ''

Data needs to be read into .net gridview from excel worksheet. Here are the aspx and aspx.cs codes. ASPX: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Krithi07
  • 481
  • 2
  • 7
  • 18
2
votes
2 answers

Can I programmatically determine (OLEDB) which column length is being exceeded?

For some reason, I can't open the Design View of the MS Access table in question; I can look at the data but not the desing, specifically, the length of columns. When I try to insert a record into said table with this code: using (var conn = new…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
4 answers

"Parameter ?_1 has no default value" error when ExecuteReader

Having problem with the code below in a web service. Have searched for a solution but nothing that I have seen seems different to what I am doing below. NB: The string variable 'AccountNo' is a passed into a function which includes the code…
wingyip
  • 3,465
  • 2
  • 34
  • 52
2
votes
1 answer

System.Data.OleDb.OleDbException(0x80004005): Unspecified Error

Through a series of loops and Database calls (Select statements only) saved as datatables I am generating a .txt file with the values. It runs fine for a little while (19 rows...19 full loop cycles) then I get a runtime exception being thrown by…
2
votes
1 answer

Microsoft.Jet.OLEDB.4.0 error on Azure Cloud Service

My requirement is to upload excel file to the folder which is on website root and then read this file's data into the datatable. This is working fine on my existing hosting provider. But now I've uploaded my website on Windows Azure cloud service.…
waghekapil
  • 321
  • 1
  • 5
  • 22
2
votes
1 answer

OLEDBException: No value given for one or more required parameters in vb.net

I'm new to programming and am having a problem with a web application I am coding in VB.net. I have an Access database in my project and am using a parameterized query to retrieve information from it. The weird thing is, I use almost the same query…
Megan
  • 23
  • 1
  • 3
2
votes
2 answers

OleDbException:Syntax error (missing operator) in query expression '@bottlecount ORDER BY ID DESC'

I got this error upon testing on how to update the particular column in the latest database entry by clicking a button. Before, i set the update statement as Dim statement As String = "UPDATE tblPatientInfo SET bottle_used = @bottlecount" …
2
votes
2 answers

OleDbException: Syntax error in ORDER BY clause

I got this error upon testing on how to get the latest database entry by selecting the required columns then specifying the unique id which is the room number ordered by the primary id, ID. This is my code: Private Sub Form5_Load(ByVal sender As…
2
votes
3 answers

InvalidCastException saying that "Specified cast is not valid."

Hi I got an InvalidCastException saying that "Specified cast is not valid.". I dont know where is the problem. Does my code has an error? This is my code: Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles…
1
2
3
9 10