Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to validate name with databae table (no space) Pin
Shameel27-Nov-09 21:54
professionalShameel27-Nov-09 21:54 
GeneralRe: how to validate name with databae table (no space) Pin
LTMKH30-Nov-09 15:16
LTMKH30-Nov-09 15:16 
GeneralRe: how to validate name with databae table (no space) Pin
LTMKH30-Nov-09 15:18
LTMKH30-Nov-09 15:18 
QuestionC# ADO.net Adapter Update Question. Pin
adamzimmer24-Nov-09 17:00
adamzimmer24-Nov-09 17:00 
AnswerRe: C# ADO.net Adapter Update Question. Pin
PIEBALDconsult24-Nov-09 18:18
mvePIEBALDconsult24-Nov-09 18:18 
GeneralRe: C# ADO.net Adapter Update Question. Pin
adamzimmer25-Nov-09 4:42
adamzimmer25-Nov-09 4:42 
AnswerRe: C# ADO.net Adapter Update Question. Pin
Mycroft Holmes24-Nov-09 18:52
professionalMycroft Holmes24-Nov-09 18:52 
AnswerRe: C# ADO.net Adapter Update Question. Pin
dxlee25-Nov-09 3:52
dxlee25-Nov-09 3:52 
You can listen to the other peoples' advice to use ExecuteNonQuery(), etc. However, I am going to just talk about your piece of code.

The adapter maintains four different query commands internally. One of them is the update query you implicitly called when you call myDataAdapter.Update(...). However, in order for it to work, the adapter has to know how to correctly construct the update query internally. What you need to make this program to work is to add the following line to tell the adapter how to construct the query internally:

OleDbCommandBuilder builder=new OleDbCommandBuilder(myDataAdapter);

Add the above line right after the line:

myDataAdapter = new OleDbDataAdapter(myAccessCommand);

After that, your Update(...) call should work.
GeneralRe: C# ADO.net Adapter Update Question. Pin
adamzimmer25-Nov-09 4:52
adamzimmer25-Nov-09 4:52 
QuestionMSMQ Pin
Tiger45624-Nov-09 7:11
Tiger45624-Nov-09 7:11 
AnswerRe: MSMQ Pin
Jimmanuel24-Nov-09 7:31
Jimmanuel24-Nov-09 7:31 
AnswerRe: MSMQ Pin
David Skelly24-Nov-09 22:35
David Skelly24-Nov-09 22:35 
QuestionWindows App Published with Visual Studio 2005 comes up blank Pin
JTRizos24-Nov-09 7:01
JTRizos24-Nov-09 7:01 
QuestionChange Calendar Type of DateTimePicker ? Pin
Mohammad Dayyan24-Nov-09 6:17
Mohammad Dayyan24-Nov-09 6:17 
AnswerRe: Change Calendar Type of DateTimePicker ? Pin
Abhishek Sur24-Nov-09 11:16
professionalAbhishek Sur24-Nov-09 11:16 
QuestionWindows service schedule Pin
Priya Prk24-Nov-09 4:16
Priya Prk24-Nov-09 4:16 
AnswerRe: Windows service schedule Pin
Calla24-Nov-09 4:24
Calla24-Nov-09 4:24 
GeneralRe: Windows service schedule Pin
Priya Prk24-Nov-09 4:29
Priya Prk24-Nov-09 4:29 
GeneralRe: Windows service schedule Pin
PIEBALDconsult24-Nov-09 6:08
mvePIEBALDconsult24-Nov-09 6:08 
AnswerRe: Windows service schedule Pin
PIEBALDconsult24-Nov-09 4:29
mvePIEBALDconsult24-Nov-09 4:29 
AnswerRe: Windows service schedule Pin
Covean24-Nov-09 4:40
Covean24-Nov-09 4:40 
AnswerRe: Windows service schedule Pin
Shameel24-Nov-09 4:44
professionalShameel24-Nov-09 4:44 
GeneralRe: Windows service schedule Pin
Covean24-Nov-09 4:47
Covean24-Nov-09 4:47 
GeneralRe: Windows service schedule Pin
Shameel24-Nov-09 5:18
professionalShameel24-Nov-09 5:18 
GeneralRe: Windows service schedule Pin
Covean24-Nov-09 21:05
Covean24-Nov-09 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.