Click here to Skip to main content
15,905,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: Lessons learned Pin
Nick Parker14-Jun-03 10:58
protectorNick Parker14-Jun-03 10:58 
GeneralRe: Lessons learned Pin
Kant14-Jun-03 15:06
Kant14-Jun-03 15:06 
GeneralRe: Lessons learned Pin
leppie14-Jun-03 16:21
leppie14-Jun-03 16:21 
GeneralRe: Lessons learned Pin
James T. Johnson14-Jun-03 12:09
James T. Johnson14-Jun-03 12:09 
GeneralRe: Lessons learned Pin
Kant14-Jun-03 15:03
Kant14-Jun-03 15:03 
GeneralRe: Lessons learned Pin
James T. Johnson14-Jun-03 17:03
James T. Johnson14-Jun-03 17:03 
GeneralNew FXCop released Pin
leppie14-Jun-03 1:55
leppie14-Jun-03 1:55 
GeneralRe: New FXCop released Pin
Rocky Moore14-Jun-03 15:33
Rocky Moore14-Jun-03 15:33 
GeneralRe: New FXCop released Pin
leppie14-Jun-03 16:16
leppie14-Jun-03 16:16 
QuestionBrowseForFolder Dialog settings starting Folder? Pin
STW13-Jun-03 19:48
STW13-Jun-03 19:48 
AnswerRe: BrowseForFolder Dialog settings starting Folder? Pin
dynamic13-Jun-03 23:35
dynamic13-Jun-03 23:35 
QuestionIs params a C# keyword? Pin
monrobot1313-Jun-03 12:54
monrobot1313-Jun-03 12:54 
AnswerRe: Is params a C# keyword? Pin
leppie13-Jun-03 13:14
leppie13-Jun-03 13:14 
GeneralOwner-Drawn Scrollbars Pin
J. Dunlap13-Jun-03 12:28
J. Dunlap13-Jun-03 12:28 
GeneralRe: Owner-Drawn Scrollbars Pin
J. Dunlap13-Jun-03 13:55
J. Dunlap13-Jun-03 13:55 
Generalgui event handling Pin
zuhx13-Jun-03 10:08
zuhx13-Jun-03 10:08 
GeneralRe: gui event handling Pin
Paresh Gheewala13-Jun-03 11:22
Paresh Gheewala13-Jun-03 11:22 
Questiondefault (optional) parameters in a function??? Pin
CherezZaboro13-Jun-03 10:06
CherezZaboro13-Jun-03 10:06 
AnswerRe: default (optional) parameters in a function??? Pin
leppie13-Jun-03 10:50
leppie13-Jun-03 10:50 
GeneralC# Language question for a guru Pin
albean13-Jun-03 9:49
albean13-Jun-03 9:49 
GeneralRe: C# Language question for a guru Pin
J. Dunlap13-Jun-03 10:36
J. Dunlap13-Jun-03 10:36 
GeneralOleDbCommands and OleDbDataAdapter Pin
mindfuck13-Jun-03 4:17
mindfuck13-Jun-03 4:17 
i have some problems storing data in an access-database.
my dataadapter don't want to execute the update()-command
correctly.
i'm creating my commands via OleDbCommandBuilder and the
sql-statements seems correct. only the select-command works
properly. the only difference between the select-command object
and the others is a private attribute called "executequery".
in the select-command that flag is true in the others false.
but i cannot access it!
what is to do?


here's some code:

string sConnString = "provider=Microsoft.JET.OLEDB.4.0; data source = myDatabase.mdb";
string sCmdString = "SELECT * FROM dbTest";

OleDbDataAdapter dataAdapter = new OleDbDataAdapter(sCmdString, sConnString);

OleDbCommandBuilder cb = new OleDbCommandBuilder(dataAdapter);

dataAdapter.UpdateCommand = cb.GetUpdateCommand();
dataAdapter.UpdateCommand.CommandTimeout = 20;
dataAdapter.InsertCommand = cb.GetInsertCommand();
dataAdapter.InsertCommand.CommandTimeout = 20;
dataAdapter.DeleteCommand = cb.GetDeleteCommand();
dataAdapter.DeleteCommand.CommandTimeout = 20;

// that works
table = new DataTable(sTable);
dataAdapter.Fill(table);

// fill the table with some data
// ...

// that one doesn't work
dataAdapter.Update(table);


thanks,
phil
GeneralRe: OleDbCommands and OleDbDataAdapter Pin
Laimis13-Jun-03 5:35
Laimis13-Jun-03 5:35 
GeneralText File Reading Newbie Question Pin
Ricardo Kirkner13-Jun-03 3:45
Ricardo Kirkner13-Jun-03 3:45 
GeneralRe: Text File Reading Newbie Question Pin
Jim Stewart13-Jun-03 5:07
Jim Stewart13-Jun-03 5:07 

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.