---
title: "Difference between SqlCommand and SqlCommandBuilder"  
description: "Difference between SqlCommand and SqlCommandBuilder"  
author: "Pushpendra Singh"  
published: 2010-10-25  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/133/difference-between-sqlcommand-and-sqlcommandbuilder  
category: "db2"  
tags: ["db2"]  
reading_time: 1 minute  

---

# Difference between SqlCommand and SqlCommandBuilder

a) SQLCommand is used to execute all kind of SQL queries like DML(Insert, update,Delete) & DDL like(Create table, drop table etc)\
\
\
b)SQLCommandBuilder object is used to build & execute SQL (DML) queries like select, insert, update & delete.\
\
\
\

## Answers

### Answer by Rajesh Goswami

a) SQLCommand is used to execute all kind of SQL queries like DML(Insert, update,Delete) & DDL like(Create table, drop table etc)\
\
\
b)SQLCommandBuilder object is used to build & execute SQL (DML) queries like select, insert, update & delete.\
\
\
\


---

Original Source: https://www.mindstick.com/interview/133/difference-between-sqlcommand-and-sqlcommandbuilder

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
