What is the significance of CommandBehavior.CloseConnection ?
Answer / Rani Tyagi
CommandBehavior.CloseConnection in ADO.NET is a flag that can be passed to the ExecuteReader() or ExecuteScalar() methods to indicate that the connection should be closed when the command execution completes. This can help conserve resources if you don't need to keep the connection open.
| Is This Answer Correct ? | 0 Yes | 0 No |
What we do with the object of ado.net dataset after using it?
Describe datareader object of ado.net with example.
What does adodb stand for?
What is the namespace in which .NET has the data functionality classes?
What is ado object model?
How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?
Which keyword is used to accept variable number of parameters?
What is the difference between executequery and executenonquery?
What is fill method in ado.net?
How to retrieve the third table value from the data set?
Can I use One Data Set for More than one Data Adapter?
What is aggregating data ?
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)