---
title: "What is the use of the Connection object?"  
description: "What is the use of the Connection object?"  
author: "Sumit Kesarwani"  
published: 2014-08-21  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/1977/what-is-the-use-of-the-connection-object  
category: "ado.net"  
tags: ["ado.net"]  
reading_time: 1 minute  

---

# What is the use of the Connection object?

The Connection object is used to connect your application to a specific data source by providing the required authentication information in connection string. The connection object is used according to the type of the data source. For example, the OleDbConnection object is used with an OLE-DB provider and the SqlConnection object is used with an MS SQL Server.

## Answers

### Answer by Sumit Kesarwani

The Connection object is used to connect your application to a specific data source by providing the required authentication information in connection string. The connection object is used according to the type of the data source. For example, the OleDbConnection object is used with an OLE-DB provider and the SqlConnection object is used with an MS SQL Server.


---

Original Source: https://www.mindstick.com/interview/1977/what-is-the-use-of-the-connection-object

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
