Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / ADO.NET

ADO.NET

ADO.NET

Great Reads

by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by ortund
Login system with breach redundancy handling.
by KRucker
A description of how how to convert a .NET DataSet to an ADODB Recordset.
by John Kenedy S.Kom
This project enables developers to create a setup package that automatically installs MSDE and attaches database

Latest Articles

by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by ortund
Login system with breach redundancy handling.
by KRucker
A description of how how to convert a .NET DataSet to an ADODB Recordset.
by John Kenedy S.Kom
This project enables developers to create a setup package that automatically installs MSDE and attaches database

All Articles

Sort by Score

ADO.NET 

by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by emadns
A basic tutorial for ReportMax tool
by emadns
Using the Chart control in ReportMax
by S. M. Ahasan Habib
.NET TransactionScope and its default Transaction Isolation level issue.
by JatinKhimani
Develop a web application in 3 layer architecture code style
by shijo joseph
An ADO.NET Layer for SQL Server and Oracle which makes it easier for interfacing with database
by shijo joseph
An easy to implement yet powerful logging library which requires absolute zero learning curve
by Ravi LVS
Datatable in ADO.NET is highly useful to do in memory data related operations. But it is very painful to update data when it is bound to a datagridview or bindingsource.While I was developing an application in .NET with C#, I came across this problem in which I had to modify a data table of...
by Ankit Bansal MVP
This articles explains the insertion of data into SQL Database using Stored Procedures with Output Parameters. Some Bootstrapping is also used to create a good looking HTML.
by Bikash Prakash Dash
How to create an auto suggestion control like Gmail/Hotmail/Facebook to add items in list.
by Eduardo Yost
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
by Bhishma Anil Kajaria
Browse and Copy data from your CSV file to SQL directly without any Windows application...
by puja11191
This is an extension of Photo Viewer on MSDN
by Matthew Givens
How to change databases at run-time in a user-friendly manner.
by mohamedkamaleed
Network check v1.0
by sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
by markmnl
Method to clone an EntityObject without serilization or detaching it
by wkiess01
How to sort a data bound combobox
by Bikash Karmokar
Connecting Windows Form Application With ADO.NET in C#
by Thinira
Continuous Integration and Delivery with VSTS (Visual Studio Team Services)
by Sibeesh KV
Convert CellSet to HTML table
by Saurav J
Convert table from outlook email body into datatable or list using .NET C# EWS Managed API and HtmlAgilitypack
by Sunasara Imdadhusen
Creating a DataTable from a DataView - DataView.ToTable()
by Yaseer Arafat
Using Extension Method and JSON Serializer
by Prakash Lekhak
We will create a Table and Stored Procedure in Sql Server 2008R2 and data will be inserted and retrieved by using Asp.net using C#
by Mattintosh
How to create a formatted column with nothing more than a knowledge of which columns you want and the format you want them in
by Diluka Wittahachchige
Creating SQL Server database project use in Visual Studio 2012 and maintain versions use in TFS
by Brady Kelly
On problems that arise tying to add a null valued SqlParameter using the SqlParameterCollection.AddWithValue method.
by sri senthil kumar
Custom Treeview control useful when multilevel hierarchical data need to be displayed and setting default can go at any level and providing access to each level then this can be the right choice.
by Gihan Liyanage
Simple Dapper.NET Example with MVC
by Daniel Santillanes
Using ServiceStack's ORMLite framework as part of your MVC project's database access
by Yugal Pandya
Database driven N-Level Dynamic Menu Control using C#.NET and SQL Server with stylesheet CSS
by Muhammad Ahmed Azam
"Database Driven Dynamic Menu Control"
by Umesh Khandelwal
Database project diff SQL script utility (using VSDBCMD).
by Jaume González
How to convert any datareader into generic list.
by Igor Krupitsky
This article shows how to get ADO.NET DataTable out of Excel
by Deepan Maheswaran
Implementing dynamic or deferred loading of data using datatables.net plugin in ASP.NET MVC
by VijayRana
CRUD operation in ASP.NET/C# with SQL Server for beginners
by VijayRana
Retrieve value from database and bind to gridview
by Sina Shiri Hamedani
This is a simple C# class for connect and using SQL Server easily (SELECT, INSERT, UPDATE, DELETE)
by Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
by cjb110
How to identify the cause of the DataSet Constraint Exception
by Robert Lindblom
Detecting concurrency issues when using Entity Framework model first and SQL Server
by Michael Breeden
Using JSON to simplify, solve and enhance SQL Database issues
by David C. Williams
When building an ADO.NET DataTable dynamically in your code, each column name must be unique or you get a System.Data.DuplicateNameException. If you don't know at design time that the columns you will be adding are certain to have unique names, you can use this method to avoid a runtime error.
by David Lee 145
How to make dynamic DTO with ExpandoObject
by Member 10872251
Cascading DropDownList in ASP.NET MVC
by ss9o9o9o
Transferring backup files from a remote SQL Server and Dynamic SQL Connection with Restore utility.
by Dipankar Hazari
How to populate a dynamically created menu bar from the database according to user credentials using C# .NET and ASP.NET.
by Kinyanjui Kamau
I have written this tip to help developers automatically set Crystal Report parameters from variables in code (WinForms) at report run time.
by Robert Lindblom
Removing entity if it exists
by Brady Kelly
A quick and easy way to ensure that your Code First DB Initializer is always run when your app starts, not just on the first data access operation
by ModMa
Real and fully functional connection Database Provider and DatabaseTraceListener for SQLite!
by User 4324523
This tip attempts to solve ProviderManifestToken issue
by Alen Toma
EntityWorker.Core - an alternative to entity Framework
by PIEBALDconsult
A simple way to enumerate the OleDb Providers installed on the system
by Nandakishore G N
Example For Gridview RowCommand Event
by Anil Kumar @AnilAwadh
A beginner's tutorial for understanding Asynchronous execution of SQL statements using a simple application.
by Manoj Deshmukh
Executing Stored Procedure that returns resultset using Entity Framework DataContext
by Sridhar Pasham
Export and import database using SMO
by JatinKhimani
Export Gridview data in Excel formate with gridview design.
by M.AFTAB.ALAM
Using MigraDoc as an open source .NET library to export a DataTable to PDF.
by sx2008
how to get as much information about your database as possible via ADO.NET
by PallavSingh
Converting data column (contains OLE db image binary Format) to image file (.jpg)
by lalitsrana
Demonstrate a simple yet efficient way to upload the data (SqlBulkCopy)
by shijo joseph
A simple and fast CSV reader which you can directly use against Oracle and SQL Server databases or for any direct implementation
by Ravindra T C
A look into the five different overloads of the DataAdapter.Fill() method.
by Muhammad Aqib Shehzad
Forgot Password and Email Check from Database
by Tharaka MTR
This article describes the easiest way to create and process delimited row using SQL XQuery.
by Bankey Sharma
Converting DataReader Result into List of Objects Using Generic Type, Property Attribute and Reflection
by Dr Gadgit
Written in C# and VS2010 as a class libary to be used in your own project.
by Srinubabu Ravilla
How to get SQL Server database connection string easily from Visual Studio
by Len van den berg
GMaps Control Simplified in VB.NET
by Matthew Ruffell
A high-performance and well tested C# ADO library for connecting and querying a SQL database
by Bikash Prakash Dash
How to highlight search text in a search result using ASP.NET
by Mian Adnan
Using Microsoft Visual Studio Professional 2012, .NET 4.5 and Crystal Report Version regarding .NET 4.5 and VS 2012
by Najmul Hoda
Here is the code snippet to check how many database connections are opened in SQL Server.
by Nandakishore G N
I'll Try To Explain Some Methods of Datatables.
by S. M. Ahasan Habib
I will explain very simple way to execute multiple script files (*.sql) from a directory.
by AlbertoLeon CSharpMan
Insert Ignore with select thousands of rows threw timeout expired exception
by Alireza C
This code helps you to grab ConnectionString from App.config.
by Alen Toma
How to implement ObjectStatus with EntityWorker.Core and JavaScript
by Maciej Los
This tip shows how to get data from multiple workbooks using one OledbConnection.
by arith silva
EffiProz(www.e...
by Ahsan Murshed
This article gives ideas to developers to increase development time productivity using the free Visual Studio 2010 extensions.
by Shining Legend
Increase update performance of sqlDataAdapter
by Ricardo_Torres_Torres
Read text file and insert mutiples records in just one SQL Sentence
by Alen Toma
EntityWorker ORM
by Mohammed Nazer
SQL Constrains details and its types
by Srinivasu Pemma
This tip provides an easy way of dealing with different types of data sources for LINQ Group By taken from my blog http://www.srinetinfo.com/2012/12/linq-group-by.html
by d.ban
A LINQ tutorial for beginners.
by PIEBALDconsult
A simple way to use ADO.NET to get a list of sheets in an Excel file
by Tim Corey
Learn how to use a dataset object to load a combobox (or other similar objects) at runtime instead of needing to set anything up at design time.
by Raphael Adeniji
Many a times, we need to programmatically manage GridView/DataGrid in Visual Studio web applications and this looks very difficult because we do not know what properties or events of the control to use. It may also be as a result of time constraint.
by Marc Leger
Microsoft ASP.NET Identity MerlinFramework
by MaDOnos
How to mock EF DbContext and DbContextTransaction with Proxy
by Emiliarge
Queries in Microsoft Access (MDB) databases.
by Chakravarthi Elchuri
Display data in Multi nested gridview using C# in ASP.NET
by Wajahat Aftab
How to load data from live market stock feed in a grid view
by AlbertoLeon CSharpMan
How to search text with LIKE with MySQLParameter in MySQL .NET / Connector
by JatinKhimani
Nested GridView With Editing Facility of both gridview.
by subhajit bhadury
nKnight - RBAC Solution for C#.NET
by Pranay Rana
Getting a SQL Server RowCount Without doing a Table Scan
by Shemeer NS
Solution for Exception: The 'Microsoft.ACE.OLEDB.12.0' 'Microsoft.Jet.oledb.4.0' provider is not registered on the local machine.
by DiponRoy
Upgrade a legacy ASP.NET project to use managed Oracle.ManagedDataAccess.Client instead of unmanaged Oracle.DataAccess.Client while using Entity Framework DB first or EDMX.
by walterhevedeich
A quick tip on using OledbCommand and OdbcCommand
by Thinira
In this tip, we discuss how to pass report parameters from web page to Telerik report programmatically.
by Marcio_Coelho
This sample demonstrates how to pass data (variables) from code behind to JavaScript.
by Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
by shahed.sohail
Passing Parameters to Success method in executeQueryAsync.
by ChienVH
Perfect Pagination with Repeater Control in ASP.NET C#
by Ying LEE
This article introduces a general and robust way to persist/serialize any Winforms component to C# code.
by Reader Man San
Plug-in Architecture To Work in WinForms MVC + WPF MVVM + ASP.NET MVC + Mobile (Xamarin MVC/PhoneGap MVC) + Win 10 Universal App MVC
by Peter BCKR
In legacy applications you can get a MissingMemberException bei acessing a SqlParameterCollection if you work with object-variables there are reference a SqlCommand-Instance.
by M.M.Mohseni
The simple sample that shows how to connect the ADO.NET Framework to the PostgreSQL
by K C R
This article is to help beginners understand what is SQL injection and how to prevent it
by Vinayaka Krishna Shenoy
Probable leak while using SqlDataReader in ADO.NET
by Sabrina Hope
If you want to be sure that every object is closed, I would use this method: while (true){ Thread.Sleep(2000); using (SqlConnection objConnection = new SqlConnection(@"Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Northwind;Data Source=.;Max Pool Size=1"))...
by DrABELL
Portable solution encapsulated in single SQL query allows to select N rows offsetting M records
by HemendraSingh88
Hi, here we will see how to query a DataSet with LINQ(Language Integrated Query).
by Subha.N
Tip to create a database application using C# .NET in the shortest time possible.
by Sonali Agarwal
Create an ASP.NET page where the user can edit/modify text for an image and then save that image with printed text on it.
by Eric Shandil
How to get dictinct records from a datatable in .NET.
by Bahram Ettehadieh
This shows how to set or change the connection string for Entity Framework at run time (programmatically)
by RedAquarius
The first instruction in .NET 4 becomes:string connectionString = System.Configuration.ConfigurationManager. AppSettings.Get("ConnectionString");
by member60
One possible way is to do it the following way: How to change the connection string in the EntityFramework? [^].
by User 10668410
How to get SQLite 1.0.98.1 working with Entity Framework 6.1.3 without a massive headache using the Database First Model and Code First Model.
by Ashish Tripathi
Sharp RepoGen is a simple tool to create repository interface having methods for CRUD operation and its implementing class. Using this tool easily you can generate your repositry class and interface. Code is generated with the help of xml template, so very easily you may change the template to creat
by Chinh Vo Wili
Send HTTP GET requests, consume ASP.NET Web API server
by Sharp Ninja
Threading can be a daunting topic. This library takes much of the worry (and mistakes) out of multi-threaded application programming.
by Nasser Malik
Split comma separated IDs to get batch of records through Stored Procedure.
by Pranay Rana
How to use Group By clause when joining to table Let's consider one scenario where I have two table employees (contains employee detail) and sales (contains infomation about sales done by employee).Structure of...
by pramod.hegde
Excel sheet to SQL DB
by Guni Van
Mapping your database with C# object class, then make typed-safe query like SQL syntax
by Simon Korenfeld
SQL schema with multi version tables support
by Prasad CM
How to fix this error.
by Hernán Hegykozi
Show you how to make a connection dialog developed completely from scratch.
by Codeman the Barbarian
In the tip, I go through one approach to integrating SQL Server's FILESTREAM type with Nhibernate.
by prashant0556.s.more
The script helps to find out upcoming birthdays even when days cross a year.
by dmytro.sen
SQL to ADO.NET API (Automated ADO.NET)
by DiponRoy
A utility class to send parameters for IN() operator in SQL using parameterized queries
by Michael Ecklin
SSRS Reports: Show Data from Non-standard Provider
by Giancarlo Rhodes
Creating the Web UI
by idreeskhan
String interpolation or String handling in C# 6.0 with new feature
by puja11191
This tip shows how can we generate and save XML files
by Tauseef M
This tool is used for Encryption of Database in SQL Server 2008 Enterprise Edition
by Vinayaka Krishna Shenoy
Twist in Performance counters for Connection pool settings
by Oleksandr Viktor (UkrGuru)
Minimally simple UkrGuru.SqlJson package for modern data manipulation
by Kirill__
How to create databese with forst 3 normal forms of relationship
by Naresh Patidar
Insert, update and delete operations using stored procedure and DataAdapter in C#
by pramodchand
Using collection of UserControls in WinForm since WinForm does not have a control like DataList server control of WebForm.
by Reeshabh Choudhary
Web platform based query builder to play with your database :)
by Roger C Moore
This tip is a guide for using the Codeplex project Effort for testing Entity Framework applications without requiring the unit tests to actually hit the SQL Server database.
by Fenil Desai
Increase ASP.NET Application performance with explicit casting
by Måns Tånneryd
This tip shows how to significantly speed up inserts of large amounts of data using the entity framework.
by Måns Tånneryd
This tip shows how to speed up inserts using POCO objects and the entity framework version 5.
by Lộc Nguyễn
With a DEMO WPF application (WinNotif)
by WernfriedD
Single .exe to verify if your Oracle Client is properly installed and working. Verify supported technologies for Oracle connection.
by Kumar_Jitendra
Expose an Entity Framework class entity as a data contract.
by sazakir
Using SqlCacheDependency with Web caching
by ShaikAnwar
This topic gives us an idea of how to write Linq queries on Entities & DataTable. This covers some basic querying and also usage of joins and group by using LINQ.
by Chamara Janaka
Article Describes how to Generate a Simple Chart using ASP.NET chart control
by Harshit Gindra
Check and request for Permissions in Xamarin Forms mobile application
by kaviteshsingh
Simple utility to scan and find duplicate files in a directory.