Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If a dataset contains 100 rows, how to fetch rows between 10
and 20 only ?

Answer Posted / pra vesh hajela

SqlConnection conn = new
SqlConnection(AppConfiguration.ConnectionString);
SqlCommand cmd = new
SqlCommand("SelectCustomerInfo", conn);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
//da.Fill(ds);
da.Fill(ds, 10, 10, "table");
return ds;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different methods available under the sqlcommand class to access the data?

1043


Which object is used to add relationship between two Datatables?

1045


What are the benefits of using ado.net?

1002


How to check if the Dataset has records ?

1007


What are disadvantages of microsoft-provided data provider classes in ado.net?

1033


Can we do database operations without using any of the ado.net objects?

989


How to Read, Add, Update and Delete record in Entity Framework ?

1039


How do I delete a row from a DataTable?

1162


What is a serialized object?

1015


What is openrowset?

980


Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.

1014


Explain the difference between ado and ado.net?

938


What are two types of transaction supported by ado.net?

992


What is the difference between data reader and data adapter?

1030


Which keyword is used to accept variable number of parameters?

1119