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

Null DataTable Exception

I'm trying to check to see if a DataTable object is null or not, but whenever the DataTable is null, my program keeps giving me an OleDBException. I have this method to set up the DataTable public DataTable setUpDataTable(String sql) { …
ecco_
  • 3
  • 1
  • 3
0
votes
0 answers

Oledb Syntax error ("missing operator") in query expression

I'm using ole db as follows: _adapter = new OleDbDataAdapter(command); _adapter.Fill(Set); command.commandtext is populated with: "SELECT [Roster$].[ID],[Roster$].[Name],[Roster$].[Level],[Events$].[Name],[Scores$].[Score] FROM [Roster$] Inner…
Tbonechk27
  • 140
  • 1
  • 5
0
votes
1 answer

FoxPro OleDbException: File Too Large

I am running a FoxPro OLEDB query with several joins over a fairly large dataset. However despite only asking for "MAX" or "TOP 100" [rows] data, I get the following error: System.Data.OleDb.OleDbException (0x80004005): File …
PeterX
  • 2,713
  • 3
  • 32
  • 42
0
votes
1 answer

VFP OLEDB 9 function is not implemented error when table has insert, update & delete triggers

I am getting the 'function is not implemented' error when attempting to do an insert into a FoxPro table that has an insert trigger related to it within the table setup GUI. Using vs2012, I created a table adapter within a dataset. I added the…
midohioboarder
  • 438
  • 5
  • 14
0
votes
4 answers

Error: Not a valid file name ( OleDbException )

I have a simple Access database, which contains one table. Here is it For my Button Load event I have this code Dim con As New OleDb.OleDbConnection Dim dbProvider As String Dim dbSource As String dbProvider =…
Romo Daneghyan
  • 2,099
  • 3
  • 18
  • 23
0
votes
1 answer

OleDbException: No value given for one or more required parameters. Update Query. Excel C#

Updating MS Excel. OldeDbException: No value given for one or more required parameters. What is wrong in the below code, private string _connString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\\Workspace\\TestSet.xls;Mode=Share Deny…
Sharan
  • 1
  • 1
  • 3
0
votes
1 answer

specified cast is not valid

Here is a code that retrieve values from the database, but my problem is that it throws out an exception saying "InvalidCastException was unhandled specified cast is not valid". I am now confused what went wrong, The code and the table stated…
Marc Intes
  • 737
  • 9
  • 25
  • 51
0
votes
1 answer

OleDBException was unhandled what happen?

Im doing a to-do list program, the error is when I click save, then it will show me the error and here is the full code, below will have the code that error message pops up Public Class frmForm1 Dim inc As Integer = 0 Dim MaxRows As Integer Dim…
0
votes
0 answers

Syntax Error in INSERT statement, Access database

I have been trying to insert a row into an access database. I have been able to insert into other tables using the same format, but this table seams to have an issue. I have dropped the table and recreated it, and that didn't seam to work. So I…
0
votes
0 answers

OleDbExecption in MVC4

I have a code which can download an excel file and it will select all of its data in side. Here is my code: string conn = string.Empty; if (Path.GetExtension(path).ToLower().Equals(".xls")) { conn =…
Ms. B
  • 1,073
  • 6
  • 15
  • 26
0
votes
0 answers

Data type mismatch in criteria expression with execute scalar method only with alpha characters as parameter, number ok

Not sure Why I get the unhandled exception mentioned above. If this is executed with a number in the textbox, its fine, but any alpha character, and it throws the exception. Dim Unumber As String = TextBox_U_Number.Text Dim con As…
0
votes
1 answer

Why am I getting "Data type mismatch in criteria expression" with this code?

I am trying to insert a record into an MS Access table with this code: public void InsertIntoPPTData(string tx, string site_no, string xmlfile, DateTime collect_dttm, string ppt_user, string tx_memo, string file_beg, string file_end) { string…
0
votes
1 answer

how to set DateTime.now as current time in Access DataBase - c# windows forms app

Im having problems with An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll ---> data type mismatch in criteria expression when i try to set the date and time of user's arrival by pressing on button. How can…
fkr
  • 155
  • 3
  • 9
  • 21
0
votes
2 answers

OleDbException was unhandled; System resource exceeded

public void LoadExcel_Click(object sender, EventArgs e) { OpenFileDialog fileDLG = new OpenFileDialog(); fileDLG.Title = "Open Excel File"; fileDLG.Filter = "Excel Files|*.xls;*.xlsx"; fileDLG.InitialDirectory =…
puretppc
  • 3,232
  • 8
  • 38
  • 65
0
votes
0 answers

Errror on creating a linked server.....Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server

Please see screenshot attached below:I go into the object explorer below, expand the linked servers node and right click the linked server I need and click "Test Connection" and I get the same error as discussed in this thread. I am trying to write…
Utpal Mattoo
  • 890
  • 3
  • 17
  • 41