---
title: "In C# how to connect with database and looping over a recordset?"  
description: "In C# how to connect with database and looping over a recordset?"  
author: "Sunil Singh"  
published: 2017-09-28  
updated: 2017-11-29  
canonical: https://www.mindstick.com/forum/34348/in-c-sharp-how-to-connect-with-database-and-looping-over-a-recordset  
category: "c#"  
tags: ["c#", "database"]  
reading_time: 1 minute  

---

# In C# how to connect with database and looping over a recordset?

I am a [beginner](https://www.mindstick.com/forum/23159/need-beginner-project-ideas) in [dot](https://www.mindstick.com/forum/92/what-is-the-dot-net-framework-data-provider-for-sql-server) [net framework](https://www.mindstick.com/forum/158573/describe-the-purpose-and-usage-of-the-common-type-system-cts-in-the-dot-net-framework), can any one tell me how can I easily [connect](https://www.mindstick.com/articles/12810/how-to-connect-tablet-to-external-monitor-or-flat-screen-tv-using-computer-adapters) with the [database](https://www.mindstick.com/articles/12226/use-of-database-in-sencha-extjs-and-insert-record-from-user-form-using-ajax) and [fetch](https://www.mindstick.com/forum/156159/what-is-google-fetch) a set of records.

## Replies

### Reply by CHECK IFSC

Post is removed by the Admin.


---

Original Source: https://www.mindstick.com/forum/34348/in-c-sharp-how-to-connect-with-database-and-looping-over-a-recordset

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
