ASP.NET - Update Dataset directly to DB
        Posted  
        
            by 
                karthik
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by karthik
        
        
        
        Published on 2010-12-24T13:44:45Z
        Indexed on 
            2010/12/24
            13:54 UTC
        
        
        Read the original article
        Hit count: 288
        
Hi,
Description:
I wanted to update dataset to database in Asp.NET. Instead of retrieving the entire table, I am retrieving only one record
using the following statement :-
 select * from Products where ProductID=3
Now I wanted to update dataset directly in to DB by using following statements (DAP 4.1)
db.UpdateDataSet(ds, ds.Tables[0].TableName, null, cmdupdate, null, UpdateBehavior.Standard);
Questions
- Can I Retrieve only one row from DB while a lot of other records are there and update back using Adapter update? ( In other words, I am not selecting all records from table)
- I am using Data Application Block 4.1? It will work there right?
- If anyone can give example for update will be great ( with Procedures).
Thanks Ka
© Stack Overflow or respective owner