Explain the difference between sqlcommand object and command behavior object?
Answer / Nivedita Mishra
SQLCommand Object is a class in ADO.NET that represents a Transact-SQL statement, stored procedure, or function. It contains properties like Connection, CommandText, and CommandType. CommandBehavior Object, on the other hand, is an enumeration that defines different behaviors for SQLCommand Object. For example, CommandBehavior.SequentialAccess indicates that only the first field of a recordset should be read, while CommandBehavior.CloseConnection closes the connection after execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is data adapter in ado.net with example?
What providers does ado.net uses internally ?
What is connection string?
Describe connection object in ado.net
What is Serialization in .NET? what are the types of Serialization?
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
What's the difference between Dataset.clone and Dataset.copy?
What is two way data binding android?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
How to generate XML from a dataset and vice versa?
How would u connect to database using .NET?
What are the namespaces used in ado.net for data access?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)