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

Define isolation?

916


What are the data providers used in ado.net

966


What are ado.net objects?

1006


What is command class in ado.net?

933


What is the difference in record set and dataset?

974


What are the parameters that control most of connection pooling behaviours?

1008


What is dataset object? Explain the various objects in dataset.

979


What are the ado.net connection pooling parameters?

905


Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

1083


How do you connect to sql server database without using sqlclient?

1038


What is an example of ordinal data?

1044


Explain how to bind the controls(best practice) comboboxes to the data in the dataset?

958


What is ole used for?

887


What is ole data type?

847


Which is the best method to get two values from the database?

913