Click here to Skip to main content
15,899,474 members
Home / Discussions / Database
   

Database

 
QuestionInterview question - query Pin
yaminilatha17-Apr-07 20:35
yaminilatha17-Apr-07 20:35 
AnswerRe: Interview question - query Pin
Krish - KP17-Apr-07 21:19
Krish - KP17-Apr-07 21:19 
GeneralRe: Interview question - query Pin
yaminilatha17-Apr-07 22:26
yaminilatha17-Apr-07 22:26 
GeneralRe: Interview question - query Pin
Krish - KP17-Apr-07 23:22
Krish - KP17-Apr-07 23:22 
AnswerRe: Interview question - query Pin
adnanrafiq17-Apr-07 21:20
adnanrafiq17-Apr-07 21:20 
GeneralRe: Interview question - query Pin
yaminilatha17-Apr-07 22:26
yaminilatha17-Apr-07 22:26 
AnswerRe: Interview question - query Pin
Pete O'Hanlon17-Apr-07 22:41
mvePete O'Hanlon17-Apr-07 22:41 
Questionhow to edit access table Pin
rkherath17-Apr-07 20:04
rkherath17-Apr-07 20:04 
Hi all,

i have a darabase in access i wanna edit a column in a table. my coding has no errors. also the dataset gets updated with the change but the real table doesn't get updated .

this is my coding.

OleDbConnection OLEDBcon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\WmsFoodCityPerformance.mdb" +
";Jet OLEDB:Database Password=sanuja");
OLEDBcon.Open();

string sel = "SELECT * FROM CON_AKU";

OleDbDataAdapter OLEDBda = new OleDbDataAdapter();

try
{
OleDbCommand OLEDBselcom = new OleDbCommand(sel, OLEDBcon);

OLEDBda.SelectCommand = OLEDBselcom;


}
catch
{
}
finally
{
DataSet ds = new DataSet();
OLEDBda.Fill(ds);
DataTable dt = new DataTable();
dt = ds.Tables[0];

foreach (DataRow dr in dt.Rows)
{
dr.BeginEdit();
dr["BGT_JUN"] = 0;
dr.EndEdit();
dr.AcceptChanges();
dt.AcceptChanges();


}

OLEDBda.Update(ds);
MessageBox.Show("Done");
dataGridView1.DataSource = ds.Tables[0];

}
}

please help

Regards
Ruwandi

rkherath


rkherath
QuestionUsing BindingNavigator to update my table Pin
Eyungwah17-Apr-07 11:44
Eyungwah17-Apr-07 11:44 
Questionaccess database Pin
marwan_siala17-Apr-07 5:48
marwan_siala17-Apr-07 5:48 
AnswerRe: access database Pin
Tarakeshwar Reddy17-Apr-07 5:58
professionalTarakeshwar Reddy17-Apr-07 5:58 
GeneralRe: access database Pin
marwan_siala17-Apr-07 6:13
marwan_siala17-Apr-07 6:13 
GeneralRe: access database Pin
Tarakeshwar Reddy17-Apr-07 6:20
professionalTarakeshwar Reddy17-Apr-07 6:20 
AnswerRe: access database Pin
Aaron VanWieren17-Apr-07 9:34
Aaron VanWieren17-Apr-07 9:34 
AnswerRe: access database Pin
Jerry Hammond17-Apr-07 15:35
Jerry Hammond17-Apr-07 15:35 
GeneralRe: access database Pin
marwan_siala18-Apr-07 4:57
marwan_siala18-Apr-07 4:57 
Questioni want to Search and reaplace strings in SQL7 Pin
Vimalsoft(Pty) Ltd17-Apr-07 3:28
professionalVimalsoft(Pty) Ltd17-Apr-07 3:28 
AnswerRe: i want to Search and reaplace strings in SQL7 Pin
kubben17-Apr-07 3:46
kubben17-Apr-07 3:46 
GeneralRe: i want to Search and reaplace strings in SQL7 Pin
Vimalsoft(Pty) Ltd17-Apr-07 19:38
professionalVimalsoft(Pty) Ltd17-Apr-07 19:38 
QuestionIdentity Column Pin
Mkanchha17-Apr-07 1:43
Mkanchha17-Apr-07 1:43 
AnswerRe: Identity Column Pin
_mubashir17-Apr-07 2:04
_mubashir17-Apr-07 2:04 
AnswerRe: Identity Column Pin
Jaiprakash M Bankolli17-Apr-07 3:45
Jaiprakash M Bankolli17-Apr-07 3:45 
AnswerRe: Identity Column Pin
PavanPareta17-Apr-07 18:46
PavanPareta17-Apr-07 18:46 
Questiongetting column names and data type Pin
ArchaBhandare17-Apr-07 1:43
ArchaBhandare17-Apr-07 1:43 
AnswerRe: getting column names and data type Pin
gauthee17-Apr-07 2:33
gauthee17-Apr-07 2:33 

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.