oledbexception

System.Data.OleDb.OleDbException: Operation must use an updateable query [closed]

允我心安 提交于 2019-12-05 19:02:13
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm confused. I'm trying to add a single record into an Access 2000 database using ASP.Net. However, when I try to add new record, I get the following error: Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query. Admittedly, the error message is misleading. The reason for this error message is that the process runs under an identity (usually ASP.NET) that only has read

“Parameter ?_1 has no default value” error when ExecuteReader

▼魔方 西西 提交于 2019-12-02 10:14:28
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 below. The error is generated on the last line of code - ExecuteReader. Dim sConnString As String Dim rdr As OleDbDataReader Dim orderPaid As Decimal Dim fbeused As Decimal sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='c:\orders.mdb'" Dim conn As New OleDbConnection(sConnString) Dim sb As New StringBuilder sb.Append("SELECT DISTINCTROW

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

淺唱寂寞╮ 提交于 2019-12-02 03:04:21
问题 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. After porting to Azure cloud service I'm getting an error on "Microsoft.Jet.OLEDB.4.0" provider. I have use the “Microsoft.Jet.OLEDB.4.0” provider for read data from the excel file and add data to datatable. It work fine on local too, but when I

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

亡梦爱人 提交于 2019-12-02 01:18:17
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. After porting to Azure cloud service I'm getting an error on "Microsoft.Jet.OLEDB.4.0" provider. I have use the “Microsoft.Jet.OLEDB.4.0” provider for read data from the excel file and add data to datatable. It work fine on local too, but when I host my web application on azure cloud service it generate following error “Microsoft.Jet.OLEDB.4.0

C# OleDb Exception “No value given for one or more required parameters” while trying to delete from Access database

一曲冷凌霜 提交于 2019-12-01 18:18:32
问题 I have a table with "SEMESTER, SUBJECT, OFFER, RESULT" where "SEMESTER" & "SUBJECT" is PRIMARY KEY. When i use the query "DELETE FROM Course_Information WHERE Semester = 1 AND Subject = 'CSE-414' ; Its working perfectly in access database but i always get exception when i tried to use it in my c# code. Moreover its works if i use "DELETE FROM Course_Information WHERE Semester = 1 ; I want to use both "SUBJECT" & "SEMESTER" In the WHERE condition (Because there could be different subject in

C# OleDb Exception “No value given for one or more required parameters” while trying to delete from Access database

为君一笑 提交于 2019-12-01 17:42:55
I have a table with "SEMESTER, SUBJECT, OFFER, RESULT" where "SEMESTER" & "SUBJECT" is PRIMARY KEY. When i use the query "DELETE FROM Course_Information WHERE Semester = 1 AND Subject = 'CSE-414' ; Its working perfectly in access database but i always get exception when i tried to use it in my c# code. Moreover its works if i use "DELETE FROM Course_Information WHERE Semester = 1 ; I want to use both "SUBJECT" & "SEMESTER" In the WHERE condition (Because there could be different subject in the same semester) See my code, connection_string = aConnection.return_connectionString(connection_string

OleDbException System Resources Exceeded

空扰寡人 提交于 2019-11-27 06:54:44
问题 The following code executes a simple insert command. If it is called 2,000 times consecutively (to insert 2,000 rows) an OleDbException with message = "System Resources Exceeded" is thrown. Is there something else I should be doing to free up resources? using (OleDbConnection conn = new OleDbConnection(connectionString)) using (OleDbCommand cmd = new OleDbCommand(commandText, conn)) { conn.Open(); cmd.ExecuteNonQuery(); } 回答1: The system resources exceeded error is not coming from the managed