GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Ado.NET
Go To First  |  Previous Question  |  Next Question 
 Ado.NET  |  Question 8 of 31    Print  
difference between SqlCommand and SqlCommandBuilder

  
Total Answers and Comments: 6 Last Update: August 31, 2009     Asked by: ateeqpasha 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sahu
 

Hi All,

Ans:

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.





Above answer was rated as good by the following members:
always_me
June 08, 2006 03:45:57   #1  
Pankaj Naval        

RE: difference between SqlCommand and SqlCommandBuilde...

SQLCommand is used to retrieve or update the data from database.

You can use the SELECT / INSERT UPDATE DELETE command with SQLCommand. SQLCommand will execute these commnds in the database.

SQLBUILDER is used to build the SQL Command like SELECT/ INSERTR UPDATE etc.


 
Is this answer useful? Yes | No
June 12, 2006 01:31:48   #2  
SuryaNarayanan Sk        

RE: difference between SqlCommand and SqlCommandBuilde...

Using Sqlcommand we can Execute select update delete ..... Querys

Using SqlCommandBulider we can generate Select update delete Querys


 
Is this answer useful? Yes | No
January 04, 2007 13:38:01   #3  
Mob: +91 9849255958        

RE: difference between SqlCommand and SqlCommandBuilde...

SqlCommand is used to execute any sql statement where as

SqlCommandBuilder generates sql commands like INSERT UPDATE and DELETE based on the columns in the SELECT statement.


 
Is this answer useful? Yes | No
January 22, 2007 03:50:14   #4  
vishal_upadhayay Member Since: January 2007   Contribution: 1    

RE: difference between SqlCommand and SqlCommandBuilde...

SQLCommandBuilder object is used to build & execute SQL (DML) queries like select insert update & delete.

Whereas

SQLCommand is used to execute all kind of SQL queries like DML & DDL.


 
Is this answer useful? Yes | No
March 29, 2007 11:57:18   #5  
sahu Member Since: December 2005   Contribution: 323    

RE: difference between SqlCommand and SqlCommandBuilde...

Hi All

Ans:

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.




 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 31, 2009 09:44:27   #6  
Goblet Member Since: July 2007   Contribution: 1    

RE: difference between SqlCommand and SqlCommandBuilder

SqlCommandBuilder is used to generate sql statements in order to update a dataset with more efficiently.
We have just to specify the table when you use the Fill method

Example :

Dim builder As SqlCommandBuilder New SqlCommandBuilder(adapter)

adapter.Fill(dataSet tableName)


//doesn't work if you don't specify previously the SQLCommandBuilder
adapter.Update(dataSet tableName)



 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape