Click here to Skip to main content
15,913,773 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQLite for small software Pin
yarp16-Jun-06 23:32
yarp16-Jun-06 23:32 
GeneralRe: SQLite for small software Pin
Dinuj Nath17-Jun-06 20:03
Dinuj Nath17-Jun-06 20:03 
GeneralRe: SQLite for small software Pin
yarp18-Jun-06 7:13
yarp18-Jun-06 7:13 
QuestionTCP/IP and Pipes for and ODBC Connection [modified] Pin
FlorianS16-Jun-06 7:43
FlorianS16-Jun-06 7:43 
AnswerRe: TCP/IP and Pipes for and ODBC Connection Pin
Garth J Lancaster16-Jun-06 20:14
professionalGarth J Lancaster16-Jun-06 20:14 
QuestionSelecting rows by earliest date Pin
Stefan R16-Jun-06 3:37
Stefan R16-Jun-06 3:37 
AnswerRe: Selecting rows by earliest date Pin
Colin Angus Mackay16-Jun-06 4:06
Colin Angus Mackay16-Jun-06 4:06 
QuestionUpdate database with multiple rows of dataset Pin
amittinku16-Jun-06 2:56
amittinku16-Jun-06 2:56 
//---------Below is code:----------------------------------------------------

string conn_str="Provider=MSDAORA.1;User ID=navuser2;Data Source=orcl;Password=navuser2";
OleDbConnection conn=new OleDbConnection(conn_str);
conn.Open();
OleDbCommand cmd = new OleDbCommand();
cmd.CommandText = "select * from test";
cmd.Connection = conn;
OleDbDataAdapter adap=new OleDbDataAdapter(cmd);
DataSet dtset=new DataSet();
adap.Fill(dtset,"test");
string ins= "insert into TEST values(30,'900')";
DataTable tab1;
tab1=dtset.Tables["test"];
DataRow r1;
r1=tab1.NewRow();
adap.InsertCommand=new OleDbCommand(ins,conn);
tab1.Rows.Add(r1);
adap.Update(dtset,"test");
conn.Close();
//------------------------------------------------------------------------

1.The above code is working fine for insert statements. How to use the above code in case if we are trying to update database with more than 1 updated row of dataset. e.g. instead of using "insert into TEST values(30,'900')";, use "update test set emp=100". Here we donot know how many rows will be updated in dataset.





QuestionSQL Server 2005 Expiration Date Pin
Brendan Vogt15-Jun-06 23:51
Brendan Vogt15-Jun-06 23:51 
Questionhow do i read a fuzzy date from MS SQL? [modified] Pin
feline_dracoform15-Jun-06 9:25
feline_dracoform15-Jun-06 9:25 
AnswerRe: how do i read a fuzzy date from MS SQL? Pin
Farhan Noor Qureshi15-Jun-06 9:36
Farhan Noor Qureshi15-Jun-06 9:36 
QuestionRecord Set in ESQL Pin
itkid15-Jun-06 2:59
itkid15-Jun-06 2:59 
AnswerRe: Record Set in ESQL Pin
Farhan Noor Qureshi15-Jun-06 9:39
Farhan Noor Qureshi15-Jun-06 9:39 
QuestionTo disable unique constraint Pin
neha301315-Jun-06 2:44
neha301315-Jun-06 2:44 
AnswerRe: To disable unique constraint Pin
Chris Meech15-Jun-06 2:58
Chris Meech15-Jun-06 2:58 
AnswerRe: To disable unique constraint Pin
Farhan Noor Qureshi15-Jun-06 10:30
Farhan Noor Qureshi15-Jun-06 10:30 
GeneralRe: To disable unique constraint Pin
neha301315-Jun-06 20:47
neha301315-Jun-06 20:47 
QuestionCombining two data base of the same schema Pin
militiaware14-Jun-06 22:09
militiaware14-Jun-06 22:09 
AnswerRe: Combining two data base of the same schema Pin
r.stropek15-Jun-06 0:20
r.stropek15-Jun-06 0:20 
QuestionHow to change date format Pin
MikeRT14-Jun-06 20:20
MikeRT14-Jun-06 20:20 
AnswerRe: How to change date format Pin
Eric Dahlvang15-Jun-06 3:55
Eric Dahlvang15-Jun-06 3:55 
QuestionAlter Tables Pin
myNameIsRon14-Jun-06 19:02
myNameIsRon14-Jun-06 19:02 
AnswerRe: Alter Tables Pin
r.stropek15-Jun-06 0:29
r.stropek15-Jun-06 0:29 
GeneralRe: Alter Tables Pin
myNameIsRon15-Jun-06 14:39
myNameIsRon15-Jun-06 14:39 
AnswerRe: Alter Tables Pin
Eric Dahlvang15-Jun-06 4:47
Eric Dahlvang15-Jun-06 4:47 

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.