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

C# Syntax error (missing operator) in query expression

I receive this error on cmd.ExecuteNonQuery()... I think I am wrong on cmd.CommandText... Syntax error (missing operator) in query expression 'Nr_Crt='1' and Varsta '3' and KG '2' and Specie 'Iepure' and Risc'Nu' and Tip1 'Diurn' and Tip2…
user3061587
  • 11
  • 1
  • 4
0
votes
0 answers

Exception OLEDB in vb.net when connecting with MS Access

When i type "dbProvider = "provider=microsoft.ace.oledb.12.0;" dbSource = "data source = d:/data1.accdb" con.ConnectionString = dbProvider & dbSource con.Open() sql = "select * from table 1" da = New…
0
votes
1 answer

Error with update query in a Access database c#

I have an error in my code. It gives me an OleDbException (No value given for one or more required parameter), hope someone can show the the way. here is part of my code: public void buttonEditar_Click(object sender, EventArgs e) { …
0
votes
2 answers

System.Data.OleDb.OleDbException invalid argument

I'm uploading an excel sheet, and want to move its data to another table in the database. The last two days I've been getting an error (System.Data.OleDb.OleDbException invalid argument), however, if I design a very simple application, it works…
Miank
  • 105
  • 3
  • 13
0
votes
1 answer

I got exception when try to read data from database with the help of OleDb

Hello I am trying to use OleDb to connect database but when i want to read data from there and use Read() command after that cmd.Parameters.Add("@name", TextBox1.Text); cmd.Parameters.Add("@password",…
Alihuseyn
  • 148
  • 1
  • 9
0
votes
0 answers

Error "No value given for one or more required parameters"

private void rdoCategory_CheckedChanged(object sender, EventArgs e) { string sql = "SELECT * FROM Recipe ORDER BY CategoryDesc"; dbCommand = new OleDbCommand(sql,dbConnection); dbAdapter.SelectCommand =…
0
votes
3 answers

OleDbException when doing INSERT in .mdb database

I have a database which has a table named Schedule. It looks like this: Schedule -------- ScheduleID (number) BackupID (number) Repository (text) Interval (text) Type (text) Now I am trying to insert values into this table like…
LeonidasFett
  • 3,052
  • 4
  • 46
  • 76
0
votes
0 answers

OleDbException 'unspecified error'

So, i get the OleDBException "unspecified error" whenever the function below hits the dataAdapter.SelectCommand = dbcommand line. I have tried adding dbcommand.connection.close() and dbcommand.connection.dispose() but neither fixed the problem. I…
MaylorTaylor
  • 4,671
  • 16
  • 47
  • 76
0
votes
1 answer

Data type mismatch in criteria expression Exception when trying to add a row

I have a problem when I want to save a row in my Access database. When I want to save it without Herinneringsmail is checked it works, when I check Herinneringsmail it doesn't work. So the fault is in the "If(ckbHerinneringsmail.Checked){...}"…
0
votes
1 answer

No Value Give For One Or More Parameters?

i have a buttonfield in a gridview, when i press that button it takes the id value from the first column, i use that id in a select statement, to get data from the table, but i get this error "No Value Give For One Or More Parameters" protected…
user1833892
0
votes
0 answers

External table is not in the expected format Excel 97-2003

I try to open an excel file and read the data but it always throw an error "External table is not in the expected format" i tried all possible connection strings but it also raise the error. my connection string is…
Mounir
  • 281
  • 3
  • 10
  • 25
0
votes
2 answers

How to insert a hyperlink into a database?

Hi guys I am trying to put a social share button to my article dynamically. I want to insert a social share script along with my article text into a database and display it with a unique share link. so I am coding this way. This might not be a good…
Jack
  • 151
  • 1
  • 4
  • 21
0
votes
1 answer

How to Create an Excel File in C#; Office 2007; Win 7 64bit?

Previously my C# app used this command to create an Excel file: try { //SELECT INTO command string cnStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + AccfilePath + ";Persist…
cjjeeper
  • 93
  • 3
  • 4
  • 13
0
votes
2 answers

System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionWrite (send()).]

In one of Win2k8R2 x64 machine, I have a C# console program which connects to a remote sql server 2008 R2 instance. Quite often I am seeing below exception message Unhandled Exception: System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionWrite…
Mahender
  • 5,554
  • 7
  • 38
  • 54
0
votes
2 answers

OLE DB Exception - database/user/password is too large

I'm trying to connect to a database using OleDbConnection and a connection string, the error given within the try-catch statement is 'database/user/password is too large'. What does that statement mean, and how can I solve this problem so I can…
sephora
1 2 3
9
10