---
title: "What is the difference between SqlCommand and SqlCommandBuilder?"  
description: "What is the difference between SqlCommand and SqlCommandBuilder?"  
author: "Sumit Kesarwani"  
published: 2014-01-27  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/1888/what-is-the-difference-between-sqlcommand-and-sqlcommandbuilder  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is the difference between SqlCommand and SqlCommandBuilder?

SQLCommand is used to retrieve or update the data from database.

SQLCommandBuilder object is used to build & execute SQL (DML) queries like select insert update& delete.

## Answers

### Answer by Sumit Kesarwani

SQLCommand is used to retrieve or update the data from database.

SQLCommandBuilder object is used to build & execute SQL (DML) queries like select insert update& delete.


---

Original Source: https://www.mindstick.com/interview/1888/what-is-the-difference-between-sqlcommand-and-sqlcommandbuilder

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
