Suppose You develop a Windows-based application XYZiApp by using Visual Studio .NET. XYZiApp uses
a SqlConnection object for database access.
You typically run XYZiApp on a computer that has limited RAM and hard disk space. After the
code finishes using the SqlConnection object, you must ensure that the connection is closed and
that any resources consumed by the object are released immediately.
What should you do?
A. Call the Finalize method of the SqlConnection object.
B. Call the Dispose method of the SqlConnection object.
C. Set the SqlConnection object equal to Nothing.
D. Set the SqlConnection object equal to
Submitted by: AdministratorB. Call the Dispose method of the SqlConnection object.
Submitted by: Administrator
Submitted by: Administrator
Read Online MCSD.NET - 70-306 Exam Job Interview Questions And Answers
Top MCSD.NET - 70-306 Exam Questions
☺ | Tell me What is the difference between Remoting and Client/Server application? |
Top Certifications Categories
☺ | CCIE Certification Interview Questions. |
☺ | CCSP Certification Interview Questions. |
☺ | AFMC Interview Questions. |
☺ | Sun Certification Interview Questions. |
☺ | GATE Exam Interview Questions. |