---
title: "What are the namespaces used in ADO.NET for data access ?"  
description: "What are the namespaces used in ADO.NET for data access ?"  
author: "Anonymous User"  
published: 2018-03-21  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/23363/what-are-the-namespaces-used-in-ado-dot-net-for-data-access  
category: "ado.net"  
tags: ["c#", "ado.net", "asp.net"]  
reading_time: 1 minute  

---

# What are the namespaces used in ADO.NET for data access ?

## Namespaces used to access database are

System.Data – It Contains all generic data access classes

System.Data.Common –It Contains classes which are shared / overridden by data providers

System.Data.OleDb - System.Data.OleDb provider classes are used to access database such as Oracle, MySQL, SQL Server and MS Access.

System.Data.SqlClient – It Contains classes for SQL Server

System.Data.SqlTypes – It Contains SQL Server data types

## Answers

### Answer by Anonymous User

## Namespaces used to access database are

System.Data – It Contains all generic data access classes

System.Data.Common –It Contains classes which are shared / overridden by data providers

System.Data.OleDb - System.Data.OleDb provider classes are used to access database such as Oracle, MySQL, SQL Server and MS Access.

System.Data.SqlClient – It Contains classes for SQL Server

System.Data.SqlTypes – It Contains SQL Server data types


---

Original Source: https://www.mindstick.com/interview/23363/what-are-the-namespaces-used-in-ado-dot-net-for-data-access

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
