Click here to Skip to main content
16,005,339 members
Home / Discussions / Database
   

Database

 
QuestionDatabase Naming Conventions Pin
Brendan Vogt11-Nov-07 2:35
Brendan Vogt11-Nov-07 2:35 
AnswerRe: Database Naming Conventions Pin
Colin Angus Mackay11-Nov-07 3:02
Colin Angus Mackay11-Nov-07 3:02 
Questionsql reports Pin
DNNUser11-Nov-07 0:49
DNNUser11-Nov-07 0:49 
AnswerRe: sql reports Pin
Giorgi Dalakishvili11-Nov-07 0:52
mentorGiorgi Dalakishvili11-Nov-07 0:52 
AnswerRe: sql reports Pin
Adeel Chaudhry11-Nov-07 19:19
Adeel Chaudhry11-Nov-07 19:19 
GeneralRe: sql reports Pin
DNNUser11-Nov-07 22:29
DNNUser11-Nov-07 22:29 
GeneralRe: sql reports Pin
Adeel Chaudhry11-Nov-07 22:36
Adeel Chaudhry11-Nov-07 22:36 
QuestionUpdate DataBase from xml file Pin
Mr. Candyman11-Nov-07 0:35
Mr. Candyman11-Nov-07 0:35 
Please, I need to know how to read xml document (created with dataSet.WriteXml) with ado.net 2.0 and update the corresponding table in the database with those values.

I wrote this test code:

using (DataSet ds = new DataSet())
using (SqlConnection conn = new SqlConnection(connectionString))
using (SqlDataAdapter da = new SqlDataAdapter("select * from TableName", conn))
{
                
    try
    {
        da.Fill(ds);
        ds.ReadXml(@"C:\xmldataset.XML");
        ds.AcceptChanges();
        da.Update(ds);
    }
                [...]


Nevertheless, the values in the database haven't been modified, after.
What am I missing?

Thanks in advance.
AnswerRe: Update DataBase from xml file Pin
Adeel Chaudhry12-Nov-07 17:28
Adeel Chaudhry12-Nov-07 17:28 
GeneralRe: Update DataBase from xml file Pin
Mr. Candyman13-Nov-07 2:29
Mr. Candyman13-Nov-07 2:29 
GeneralRe: Update DataBase from xml file Pin
Adeel Chaudhry13-Nov-07 17:09
Adeel Chaudhry13-Nov-07 17:09 
QuestionADO Recordset, How to use the paging facility? Pin
followait10-Nov-07 21:56
followait10-Nov-07 21:56 
QuestionHow connect two server in the same Query Pin
Rami Said Abd Alhalim10-Nov-07 0:58
Rami Said Abd Alhalim10-Nov-07 0:58 
AnswerRe: How connect two server in the same Query Pin
Paul Conrad10-Nov-07 3:20
professionalPaul Conrad10-Nov-07 3:20 
GeneralRe: How connect two server in the same Query Pin
Rami Said Abd Alhalim10-Nov-07 3:52
Rami Said Abd Alhalim10-Nov-07 3:52 
GeneralRe: How connect two server in the same Query Pin
Paul Conrad10-Nov-07 3:59
professionalPaul Conrad10-Nov-07 3:59 
AnswerRe: How connect two server in the same Query Pin
Marek Grzenkowicz11-Nov-07 20:27
Marek Grzenkowicz11-Nov-07 20:27 
QuestionHow to get 5 th record of the table using stored procedure... Pin
Sasmi9-Nov-07 21:01
Sasmi9-Nov-07 21:01 
AnswerRe: How to get 5 th record of the table using stored procedure... Pin
pmarfleet9-Nov-07 22:11
pmarfleet9-Nov-07 22:11 
AnswerRe: How to get 5 th record of the table using stored procedure... Pin
Vipin.d10-Nov-07 4:55
Vipin.d10-Nov-07 4:55 
QuestionHi bro i dont know how to do this query.. Pin
Sasmi9-Nov-07 20:57
Sasmi9-Nov-07 20:57 
AnswerRe: Hi bro i dont know how to do this query.. Pin
pmarfleet9-Nov-07 22:08
pmarfleet9-Nov-07 22:08 
AnswerRe: Hi bro i dont know how to do this query.. Pin
Xmen Real 11-Nov-07 20:39
professional Xmen Real 11-Nov-07 20:39 
AnswerRe: Hi bro i dont know how to do this query.. Pin
Marek Grzenkowicz11-Nov-07 21:17
Marek Grzenkowicz11-Nov-07 21:17 
QuestionSelect and update selected data Pin
Vipin.d9-Nov-07 20:18
Vipin.d9-Nov-07 20:18 

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.