Interview answers verified by specialists.
Find interview questions and answers on this website:
Command objects are used to execute the queries, procedures. Sql statements etc. It can execute stored procedures or queries that use parameters as well. It works on the basis of certain properties like ActiveConnection, CommandText, CommandType, Name etc. Command object has three methods: a) Execute: executes the queries, stored procedures etc. b) Cancel: stops the method execution c) CreateParameter: to create a parameter object