Click here to Skip to main content
15,887,434 members
Everything / OleDb

OleDb

OleDb

Great Reads

by Bert O Neill
Query Hadoop using Microsoft oriented technologies (C#, SSIS, SQL Server, Excel etc.)
by Sujith Karivelil
In Master - Slave replication, Changes in master will reflect in Slave. but any changes made in the slave Database will not reflect back in Master, this article will help you to implement Bidirectional Replication.
by Ryszard Dżegan
How to get around restrictions for parameters in OLE DB connection type while working with SSIS and BIDS.
by Rajeesh Madambat
Refer and write your own business logic in C# and add it to SSIS script task.

Latest Articles

by DiponRoy
Upgrade a legacy ASP.NET project to use managed Oracle.ManagedDataAccess.Client instead of unmanaged Oracle.DataAccess.Client while using Entity Framework DB first or EDMX.
by WernfriedD
Single .exe to verify if your Oracle Client is properly installed and working. Verify supported technologies for Oracle connection.
by Bert O Neill
Query Hadoop using Microsoft oriented technologies (C#, SSIS, SQL Server, Excel etc.)

All Articles

Sort by Title

OleDb 

21 Jun 2017 by JatinKhimani
I know that is this question has dozen of answers and posts, but nothing works for me. We have my MVC4 application and i deployed it to IIS7 to my server and one more machine where we don't have visual studio installed. We are doing import/export data from/to excel for doing bulk entry. we do...
10 Nov 2017 by Member 12117439
'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. I am getting this in visual studio only after upgrading from 32bit office 2013 to 64bit office 16. I have already installed the 64bit database engine and my published project from IIS is working with the existing access...
25 Nov 2014 by Rohit Gupta
I am debugging an application written in Classic ASP. The app connects to Oracle db in cloud but I get this error :Code: 800ac350Description : missing parameter OLEDB provider.Does anyone has any idea why I am getting this error.I am using x64 bit drivers for Oracle...
15 Aug 2018 by Member 13951068
Hi, I have this error text "System.Data.OleDb.OleDbException : 'Syntax error in FROM clause.'" i didn't know why that's doing this error message Please Can you help me ? Code : private void Form1_Load(object sender, EventArgs e) { using (OleDbConnection con =...
15 Aug 2018 by F-ES Sitecore
If you use reserved words for tables you put square brackets around them to let it be known you are not referring to the reserved word but a table called that word. OleDbCommand command = new OleDbCommand("SELECT * FROM [note]", con);
15 Aug 2018 by OriginalGriff
"Note" is an access keyword: Access 2007 reserved words and symbols - Access[^] - to use it as a table name it must be escaped: OleDbCommand command = new OleDbCommand("SELECT * FROM [note]", con);
26 Jun 2016 by Member 12179104
I have been creating a software in C#. I tried to update some information in my Access database. Here's my database fields.Date ,total_h, W_hours, delay_h. Date is the Primary key. So I want to Update data where Date="datetimePicker.text". here is the Code What I tried. try{ ...
26 Jun 2016 by OriginalGriff
Don't do it like that. Do not concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Use Parametrized queries instead.The chances are that this will cure your problem at the same time: it's...
4 Jun 2016 by Member 12360367
I am working with openrowset using Microsoft.Oledb.Jet.4.0. It works fine on 32 bit systems. However I had updated system to 64 bit version of SQL Server 2014 cluster server with Windows Server 2012 R2.Since there are no 64 bit version found for Jet.4.0 I have installed Ace.12.0 64 bit...
4 Jun 2016 by OriginalGriff
If you have an SQL Server cluster set up, then it is very odd to want to use Access directly for anything, let alone for a large scale DB. Access is basically a single user, single access, small system database - and it isn't very good at all when you try to expand beyond that.If you have SQL...
25 Oct 2021 by Member 14168791
Using an ms-access-2007 database and trying to edit a certain row/column without success. I can add new rows to the same data base with code without problems. Trying to reduce my original code to a simplest possible test-code and running it shows...
14 Sep 2013 by Grant Mc
I would like to write code to add a DataColumn to a DataTable, but when I save the DataTable, it does not include the new DataColumn.It saves any new DataRows I add, but not the DataColumns.Can somebody please tell me what I am doing wrong?public partial class Form1 : Form{ ...
14 Sep 2013 by Mahesh Bailwal
You can not add new column/field to database table using dataset or datatable you might need to use "ALTER TABLE" with ADO.NET commands. Check below linksHow Can I Insert New Column Into A Database Table Using SqlDataAdapter and DataTable?[^]adding a column to a SQL table in VB using...
21 Feb 2014 by asjadathick
Hi,I have created a program to add a record to a database (to the table "Orders"). I have added an OleDB database using Visual Studio's connection wizard. The database was originally created in Microsoft Access before adding it to Visual Studio.This is the code I have used.The...
6 Mar 2019 by eramm01
I am migrating a VBNet programme from DAO to ADO. The database is an *.mdb database. In DAO I performed the following: Opened the database, created a recordset by using an SQL select command. I then could update using a recordset.edit/.update or a .addnew command. In ADO I do the folloing:...
6 Mar 2019 by CHill60
I'm with the others who are suggesting biting that bullet and updating to ADO.NET - especially as you are already spending ages trying to overcome the problems caused by using out-of-date technology. However, try the following to see if it gets you over your hump.. 1. I'm pretty sure it's the...
25 Oct 2012 by thomas_wingfield
I got trouble when start creating accessor using attributes. I did like this class:[db_source("my connection string")][db_command(" \ SELECT \ ProductId, \ ProductName, \ Company, \ Code, \ Quantity, \ Price, \ Description...
1 Jul 2014 by Ryszard Dżegan
How to get around restrictions for parameters in OLE DB connection type while working with SSIS and BIDS.
28 Jan 2015 by Sujith Karivelil
In Master - Slave replication, Changes in master will reflect in Slave. but any changes made in the slave Database will not reflect back in Master, this article will help you to implement Bidirectional Replication.
20 Apr 2016 by Nestor Gellegani
Hi there,Would like to know if there's a way to convert a JPG images (Header 0xFFD) stored in SQL as BLOB to MSAccess 2003 OLE Embedded images (Header 0x151C). I'm trying to automate and eliminate the cut and paste to our inhouse application (MSAccess 2003) and get the photo from one...
17 Nov 2016 by Member 12561559
Am I right in assuming that:(for example): If we have a variable called "DB" as a oledb.oledbconnection and I wanted to pass that connection to another function in a module in my project that the receiving sub/function hastestfunction(byval DB as oledb.oledbconnection)means that...
17 Nov 2016 by Richard MacCutchan
See Passing Arguments by Value and by Reference (Visual Basic)[^].
17 Nov 2016 by Jochen Arndt
The passed argument is a "reference class". That means even when using ByVal, a reference is passed but you get a copy of the reference instead of the reference itself (you will not get a copy of the OleDBConnection instance).So the answer to your question is:The existing connection is...
6 Mar 2013 by Chiranthaka Sampath
When I am truing to insert data to MS Access Database Table using oledb 4.0 I found an errorThe statementprivate void btnPrint_Click(object sender, EventArgs e) { //Creating the Patient ID. intYear = DateTime.Now.Month; strYear =...
6 Mar 2013 by Pallavi Waikar
problrm is in oleDbCommand .at time of value insert..one ' is missing in querytry this OleDbComm.CommandText = @"INSERT INTO Full_Blood_Count...
17 Jun 2016 by Member 11572517
For everyone, solve this problem, i am new in c#,I made one desktop app, my problem is i failed to retrieve image value from database of OLEDB like MS Access.In code i tried the textbox_keydown event that with database;there are 5 textbox and one picturebox for image.In textbox of...
17 Jun 2016 by OriginalGriff
The error is pretty clear:can't cast system.DBNull type to System.Byte[];The value returned from your database isn't data - it's a null. That means that either you didn;t insert an image in that column when you saved the row, or it's the wrong column.Given that you are using SELECT * FROM...
25 Jun 2018 by coolNish
I have an excel file where it contains an image in the header, I don't care about that image even if it has to be removed. I get the following error message while making the connection to the file which contains the image. conn.Open(); **External table is not in the expected format** ...
25 Jun 2018 by Maciej Los
Just ignore headers. All you need to do is to change connection string from: strig sConn= string.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0}='Excel 12.0 Xml;HDR=YES;';", sFullFileName); to: strig sConn= string.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended...
26 Nov 2019 by Prachi92
I want to print database value on multiple pages (30 values on one page). By using while(dr.Read()) loops goes infinitely and the same data is displaying on each page, How to solve it? What I have tried: private void test2_Load(object sender, EventArgs e) { itemperpage =...
26 Nov 2019 by OriginalGriff
Well ... you read the same data from the DB each time that method is executed - so as long as the DB contains 30 or more items, you will print the first page, tell the system there are more pages to print, and exit. The system will then call you again to print the next page, you will read the...
17 Nov 2015 by anil_kumar_bhakta
Dear All,I am developing such a database application which extract data from excel and save it to SQL Database.My program is working fine at production server. But when it runs from client's PC it fails. Suppose I have a file "C:\test.xlsx". It works on Server but not working on client...
17 Nov 2015 by OriginalGriff
It's quite likely that it's a permissions problem: the root directory of most machines is protected these days, and read-write access to files in it defaults to forbidden - particularly when it's the root directory of the boot disk.I'd strongly suggest that you store your DB in a more "user...
5 Mar 2015 by M­­ar­­­­k
Im having a exception throwing problem with my program which works with a access database through OleDB connection.Here is my function which causes the error.public static string getNICByID(int ID) { //validation params if (ID
5 Mar 2015 by Afzaal Ahmad Zeeshan
That is because you, yourself, personally are throwing this exception in your code when there is no record found in the database. if (obj != null) return obj.ToString();else throw new Exception("No records");This line of code is intended to do what you're seeing. It...
5 Mar 2015 by Joan Magnet
You're throwing the Excetion again in your catch() section.try{ // your code throw New Exception ("no recors")}catch (throw) catch (Exception ex){ MessageBox.Show(ex.Message);}
6 Mar 2015 by Simon_Whale
The other two answers are showing you what is going on. What I would do ischange your try catch block to try { if (obj != null) return obj.ToString(); else throw new Exception("No records"); } catch(Exception ex) { //put a break point on this...
18 Nov 2015 by Rencyrence
Hi here's my scenario right now:Recently i change my codes from oleB to my sqlHere's my previous codestring sql = "SELECT COUNT(*) FROM account WHERE [Access_Control] = @code";OleDbCommand com = new OleDbCommand(sql, con);com.Connection = con;com.CommandText =...
18 Nov 2015 by George Jonsson
You need to remove the brackets in the SQL statementstring sql = "SELECT COUNT(*) FROM account WHERE Access_Control = @code";If you need use a keyword in MySQL you wrap it in two ` `like`Table`(Don't know what this character is called, though)[UPDATE]Just for the fun of it,...
24 Sep 2013 by Member 10295714
Hi,I have a database with a table name "main" which contain 4 column and N no of rows.The Four columns names are Type,Model Name, Min and Max.In this, i have to choose a model name by giving its type and then its range.Model Name should be displayed for given range value.(it...
24 Sep 2013 by leonidasvijay
try using this:select [model Name] from main where type='gates' and min='"+textbox2.text+"'"
24 Sep 2013 by PIEBALDconsult
You're not asking for any results; all you're asking for is trouble.I strongly recommend you not use a DataAdapter, but if you do, you need to look at its Fill method.I also strongly recommend you use a parameterized query rather than using string concatenation to form the...
24 Sep 2013 by Member 10295714
Hi.This is my program.try{con.open();{da=new oledbdataadapter("Select modelname from table where type='gate' and min
24 Sep 2013 by Rick van Woudenberg
Hi there,This behaviour could be caused because you're asking the database to return an integer value (the return value min/max from the database) based on a string (text) input. You could try to parse the textbox value to an integer like :int i =...
7 Jul 2017 by Member 13284521
below code is work but if i want to browse excel sheet with 1000000 record, what changes need ??? What I have tried: i try this code protected void btnUpload_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { string FileName =...
7 Jul 2017 by RickZeeland
You can use virtual scrolling, see answer here: virtual scrolling in asp.net gridview[^]
7 Jul 2017 by Patrice T
Don't use Excel 2003 as it is limited to 65k rows. Excel 2007 is limited to 1M rows. Excel – a history of rows and columns - Office Watch[^]
26 Dec 2017 by User98743
Day 3 trying to solve this. I'm trying to set a variable in C# equal to the values I retrieve from the database, as I have done hundreds of times. I have literally no idea what I'm doing wrong. My problem is with DBToType while iterating DataTable.Rows to get a field from it's ItemArray. ...
27 Dec 2017 by BillWoodruff
To exclude the possibility that you are getting an object that can't be converted to a long, test with another function that uses Int64.TryGetValue, and break on error to examine the data. I would rather use hard-coded Type specific conversion methods, which throw useful errors. Use of...
28 Jan 2016 by Nguyen Khoa Beo
This error occurs when an event has failed to run because the location of the logic for the event cannot be evaluated. For example, if the OnOpen property of a form is set to =[Field], this error occurs because a macro or event name is expected to run when the event occurs.sorry about my...
28 Jan 2016 by OriginalGriff
If you mean that you have taken an .MDE file that works with Access 2003, and updated it as an .MDB file with a later driver, then the chances are that the file has been corrupted or converted to the later version - which from the point of view of the 2003 application is the same thing. Think...
13 Dec 2013 by Member 10465232
This is making me absolutely NUTS!Why, oh why is closing a connection hanging up my hosting server???Quick background: I put in code to test every single step by writing out the step to a text file on the server. (All of the text-writing code works fine by the way.)When I close the...
13 Dec 2013 by Ron Beyer
Try wrapping your connection and command objects in Using blocks, see: http://msdn.microsoft.com/en-us/library/ms254507(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1[^]Also, you should probably use ExecuteScalar instead of ExecuteReader, that way you don't have to use a DataReader...
3 Sep 2012 by Member 9648718
Hi, I am writing a app that must have the ability to : - GUI should be seen on a web interface (Thus I'm using C# Web Application) - Be able to select .mdb files - Add rows - Delete rows - Edit rows - Save everything back to the .mdb file.I have googled for ages.I have...
19 Sep 2017 by Member 13416420
I am connecting a VB Form Program to an access database. 3 of the 4 tables in the database are connected and working in their proper datagridviews but the last one is not connecting properly. the code for all connections is the same. What I have tried: so i traced the issue with msgbox...
19 Sep 2017 by Dave Kreskowiak
Another problem I see. You're repeating the same code over and over again. This is Clue #1 (tm) that you need to put that kind of code in it's own method and call it from where you need it.
22 May 2017 by gaurav.s23
I Could not able to open OleDbConnection, I get exception when code calls Open() method. What i am trying to do is load from from excel to Data table. My local machine has Office 2016 (64), I have installed AccessDatabaseEngine_X64, Sometime I get error as : external table is not in the...
22 May 2017 by Maciej Los
To resolve your issue with Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error, follow the instruction from: OLEDB Provider is Not Registered on the Local Machine[^]
23 Sep 2015 by Praveen Raj V
Any of the following exceptions occurs (IIS 8) once or twice in a week.* Error Message:System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.* Error Message:System.Data.OleDb.OleDbException (0x80004005): Could not find...
3 Dec 2014 by Yesudass Moses
Hi,I am new to SSIS packages. I am writing an SSIS package which copies all tables from an Access Database to SQL Server Database. I am using an ADO.NET Source and OLEDB Destination in DataFlow which resides inside a ForEach Loop Container. Everything is working fine, if the tables are...
3 Dec 2014 by Chandra Mohan N
Refer this linkshttps://www.simple-talk.com/sql/ssis/ssis-basics-using-the-merge-join-transformation/[^]http://msdn.microsoft.com/en-IN/library/ms141237(v=sql.105).aspx[^]
1 Apr 2014 by sathizhmail
I m geeting following error in Client server not in development server..Logon failed.Details: ADO Error Code: 0xSource: ProviderDescription: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.Native Error: Error in File...
1 Apr 2014 by thatraja
Quote:Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.[^]Quote:incorrect log on parameters.C# Crystal Reports...
29 May 2016 by Devil7DK
I need to insert some strings, binary data and integers into database. Some of those strings contains the constants like ' (apostrophe). So i thought i can insert those using parameters. When using the code below i had "Data Type Mismatch in Criteria Expression" Error. Function...
29 May 2016 by Patrice T
Your code can be simplified by rewriting If ls_Site.Items.Count > 0 Then For i As Integer = 0 To ls_Site.Items.Count - 1 If i = 0 Then r = ls_Site.Items(0).ToString ElseIf i > 0 Then r &= ";" &...
24 Apr 2018 by ahmed_sa
Problem Datagridview show only last record although I have more rows when currentreading excel is less than currentreading invoice table . wrong result in else statement of btn_import click inside for loop count I need to modify code in else to accept list not show only one record . Details ...
24 Apr 2018 by Wendelius
At least few things to notice When you loop through the rows from Excel, you set a new data table and a new dataview on each iteration when the amount is less than what is found in the database. This causes the situation where only the last row remains. You should use a single data table and...
2 Apr 2013 by SalouaK
I used the below code to create a .DBF file and filling it, everything works fine. The problem is the name of the file is truncated to 8 characters max. Any idea why or how to make maintain the whole name?string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data...
2 Apr 2013 by Mike Meinz
You're not showing us the ConnectionString but I suspect that the driver in the ConnectionString is causing this issue. Perhaps because the .DBF extension dates from the DOS era, the filenames are created in the old DOS 8.3 format. Via a Google search, I found this article that talks about...
18 Mar 2013 by SalouaK
I use OLEDB to insert data to a DB4 .dbf file. Inserting 13 row takes almost 1 minute wich is soooo loong, theis problem only accur during insertion in one table , that contain a varchar 20 , 2 dates and a decimal. Is there any alternative faster ways to do this?here is some code samples...
18 Mar 2013 by CHill60
Try changing the way you are setting up your command to use prepared sqlsee http://msdn.microsoft.com/en-GB/library/system.data.oledb.oledbcommand.prepare.aspx[^]Apart from making things more performant using (fully) parameterised queries will also help protect against sql...
18 Mar 2013 by SalouaK
The problem was that I have cmd.Parameters.AddWithValue in the looop wish means a parameter is added at each iteration.foreach (DataRow row in fstathotel.Rows){ cmd.CommandText = @"insert into fstathote values (" + Convert.ToInt32(row["mpe"]) + ",'" + Convert.ToDateTime(row["date"]) +...
1 Nov 2023 by M Imran Ansari
The error message is clear that tha column name 'HOUR' is not being recognized in the table or not spelled correctly, you are trying to insert data into. The INSERT INTO statement contains the following unknown field name: 'HOUR'. Make sure you...
4 Nov 2023 by Dave Kreskowiak
Just to reinforce the point that may have been missing, that is some horrifyingly bad code. It's near impossible for a newb to debug, isn't supportable n any environment, and would give code and security reviewers heart attacks. Google for "Sql...
4 Nov 2023 by ramderf.0326
SQLInsertCommand = "INSERT INTO " & strFileName2 & "_ (TRANDATE,[HOUR],SALES,TRANCNT,TENTNAME,TERMNUM) " & _ " VALUES('" & Format(CDate(dr("dateid")), "Short Date").ToString & _ "','" & "" & dr("dhour") & "'," & _ Format(dr("amt"),...
7 May 2013 by gaurish thakkar
I am using Winform deployment project which uses "Provider=Microsoft.Jet.OLEDB.4.0;"as connection stringthis works fine on 32 bit system but on 64 bit i get error saying Provider=Microsoft.Jet.OLEDB.4.0;not registered I tried changing the debug to x86 from any cpu but i am still getting...
27 Jun 2013 by Shruti Sagar Mishra
Hi Friends , today I came accross a very weired kind of situation.I am a beginer in vb.net so any help is greatly apprciated While Not linkfound Try t1 = DFSStk.Pop() Catch ex As Exception ...
27 Jun 2013 by Pheonyx
I would suggest re-instantiating your redr object for each iteration of the outer loop as I do not believe there is a way to more an OLEDBReader back to the start.As an alternative you could populate a datatable with the information then just read through that.so outside your outer loop...
16 Feb 2017 by kozmikadam
Hi,I'm trying to update an excel file with using c# oledb way.I have excel files more than one. One of then hasn't any problem and i can update like what i want.But other excel files i have some missmatch column. I want to update cell like a string but it's type is number ( on Excel...
16 Feb 2017 by Richard MacCutchan
You should read the item(s) first with a SELECT statement, and check exactly what type each variable returns. You can then update it with the correct value.
23 Jan 2016 by varuncodee
I got error "No value given for one or more required parameters" error when executing the following code. i can't find out where is problem. Please help me out. Thanks. using (OleDbConnection con = new OleDbConnection(ConfigurationManager.AppSettings["connection"])) { ...
23 Jan 2016 by OriginalGriff
Without your DB table definition we can't be sure, but I'd start by checking your spelling. Is MStaus really the column name, or should you have written:OleDbCommand cmd = new OleDbCommand("Select * from Loan where Plan_Id IS NOT NULL AND MStatus IS NULL ", con);
23 Jan 2016 by Bikram Chhetri
When you receive this error it means that the Access Engine is unable to find find one or more of your columns names or the whole table name correctly.So make sure that the column name you have given is same as table column name. Is this really a column name MStaus?
11 Jul 2013 by Member 9410081
using NBFC_App.AppCode.Queries;using NBFC_App.AppCode.Utility;using NBFC_App.AppCode.Sessions;using System.Data;using NBFC_App.AppCode.DbSubsystem;using System.Text;namespace NBFC_App.AppCode.Queries{ public class Usergroup_Qry { string gen_sql, MySql = ""; ...
11 Jul 2013 by Mohammed Hameed
Utility o_Cls_Utility = new Utility();This line of code is the problem because Utility is the namespace (using NBFC_App.AppCode.Utility;) and you have used it as a type and initializing it, which is not allowed.There must be a particular type from Utility namespace, which you should have...
3 Mar 2014 by abdulrehman7621
plz help me in thismy data can't insertedit displaying error "syntax error in INSERT into Statement"try { OleDbConnection con; OleDbCommand com;string path = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\user\Documents\Visual...
3 Mar 2014 by Krunal Rohit
Well, user is a keyword (If I'm not mistaken than it's a inbuilt table) in SQL, So you can't give a table name like that.But still if you want to, you can, but write the query this way,string query = "insert into [user] (username,password) values ('" + textBox1.Text + "','" + textBox2.Text...
20 Apr 2018 by ahmed_sa
When i try to get data from excel sheet i get error no value given for one or more required parameters.' why this happen . i work in visual studio 2010 with excelsheet 2013 my code in c# as following public DataTable ShowWrongExcelData() { string...
20 Apr 2018 by Wendelius
If I understand your question correctly you don't have a column named CurrentMeterReading in your Excel sheet, that's just an alias that you give for a column when selecting the data. The column name in WHERE clause should refer the column names in the sheet. Have a try with something like...
30 May 2016 by Devil7DK
I have an patient report database, some of their values have database query constants like ' or " so i tried to insert these values using parameters. input was in English but when trying to retrieve the stored value it was returning a value of some kind of binary. the link for pictures and...
30 May 2016 by OriginalGriff
:sigh:Given that you have heard of parameterized queries, but you misuse them to store only those fields that give you a problem right now - and then you wonder why they don't work...Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL...
11 Nov 2012 by Eser Atesoglu
I am reading an excel spreadsheet in C# using OleDb connection. I get an error (See below) if any of the column headers in the excel is "Domain".The error message is (raw)System.Data.OleDb.OleDbException (0x80004005): IErrorInfo.GetDescription failed with E_FAIL(0x80004005). at...
11 Nov 2012 by MT_
Hi, I suspected that Domain is reserved word. Hence I searched on google a bit and found that it is indeed a reserved word.http://support.microsoft.com/kb/321266[^]So what you need to do is use square bracket around as shown below.OleDbCommand objCmdSelect = new...
12 Nov 2012 by Eser Atesoglu
Thanks Milind. Your solution solved the issue.
11 Feb 2015 by Member 11005570
Server Error in '/' Application.Operation must use an updateable query.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception...
11 Feb 2015 by ZurdoDev
Since we can't see your query we can only guess as to what might be wrong.This link, http://stackoverflow.com/questions/19789709/operation-must-use-an-updateable-query-error-in-ms-access[^], has several suggestions of what it can be.Since your title indicates that it worked in dev but...
26 Apr 2022 by semicolonerror
I have recently upgraded my excel from 2007 to 2019. I was using this "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & ExcelPath & ";Extended Properties=""Excel 12.0 Xml;HDR=Yes;"";" as a connection string. It was working fine before. Now,...
26 Apr 2022 by OriginalGriff
Simple: one machine has both Excel engines installed, the other only has the latest version. Chances are you uninstalled 2007 before you installed 2019. Your connection string should be in a configuration file anyway, so it is set per machine...
26 Aug 2013 by Sagar Shivdas Raut
Hello I Have A problem that im reading an Excel file using oledb and Convert that into DataTable so whenever i fetch data from Excel that replace Some Special characters with like 'Ó' replaces with '?' But i want that characters remains as it ismy Code for Reading Data from Excel file ...
28 Aug 2013 by Menon Santosh
plz try this connection stringstrExcelCon = @"Provider=Microsoft.ACE.OLEDB.14.0;Data Source=" + sExcelPath + ";Extended Properties='Excel 8.0;HDR=YES;IMEX=1'";