.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What are Advantages and Disadvantages of using Connection Pooling

Posted By :Karthikeyan Anbarasan     Posted Date :June 28, 2011    Points :40   Category :.NET Framework 
Advantage of using Connection Pooling is an improvement of performance and scalability

Disadvantage is that one or more database connections, even if they are currently not used, are kept open


You can also find related Interview Question to What are Advantages and Disadvantages of using Connection Pooling  below: 

Does ADO.NET supports automatic connection pooling?

  
Yes.

There is a pooling property with connection string. By default it is set to true.
Use this property to specify that a particular connection should not participate in the pool, but instead should be destroyed when it is closed. (More...)

What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

  
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it's a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines. (More...)

What are the advantages and disadvantages of viewstate?

  
The primary advantages of the ViewState feature in ASP.NET are:
1. Simplicity. There is no need to write possibly complex code to store form data between page submissions.
2. Flexibility. It is possible to enable, configure, and disable ViewState on a control-by-control basis, choosing to persist the values of some fields but not others.
There are, however a few disadvantages that are worth pointing out:
1. Does not track across pages. ViewState information does not automatically transfer from page to page. With the session
approach, values can be stored in the session and accessed from other pages. This is not possible with ViewState, so storing
data into the session must be done explicitly.
2. ViewState is not suitable for transferring data for back-end systems. That is, data still has to be transferred to the back
end using some form of data object
(More...)

What is Connection Pooling ?

  
Connection Pooling will make a single connection instance, which allows that instance to connect to all the databases. Advantage is that it does not open and close the connection object multiple times. (More...)

What is Connection Pooling

  
Connection pooling is of

· A Connection Pool is a container of open and reusable connections. A Connection Pool is released from the memory when the last connection to the database is closed.

· The Data Providers in ADO.NET have Connection Pooling turned on by default; if you need to turn it off, specify Pooling = false in the connection string being used.

· Connection Pooling gives you an idle, open, reusable connection instead of opening a new one every time a connection request to the database is made. When the connection is closed or disposed, it is returned to the pool and remains idle until a request for a new connection comes in.

· The pool can house connections up to the maximum limit as specified in the connection string that was used to connect to the database.


(More...)

Parameters used in Connection pooling

  
Connection Pooling is controlled and the parameters passed to a connection string comprises the following:

· Connect Timeout

· Min Pool Size

· Max Pool Size

· Pooling

(More...)

Adv and Disadv of using Connection Pooling

  
Advantage of using Connection Pooling is an improvement of performance and scalability

Disadvantage is that one or more database connections, even if they are currently not used, are kept open
(More...)

What is Connection Pooling

  
Connection pooling is of

· A Connection Pool is a container of open and reusable connections. A Connection Pool is released from the memory when the last connection to the database is closed.

· The Data Providers in ADO.NET have Connection Pooling turned on by default; if you need to turn it off, specify Pooling = false in the connection string being used.

· Connection Pooling gives you an idle, open, reusable connection instead of opening a new one every time a connection request to the database is made. When the connection is closed or disposed, it is returned to the pool and remains idle until a request for a new connection comes in.

· The pool can house connections up to the maximum limit as specified in the connection string that was used to connect to the database.


(More...)

What are the Parameters used in Connection pooling

  
nnection Pooling is controlled and the parameters passed to a connection string comprises the following:

· Connect Timeout

· Min Pool Size

· Max Pool Size

· Pooling

(More...)

What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

  
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it's a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines. (More...)

What is a pre-requisite for connection pooling?

  
Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings. (More...)

What is a pre-requisite for connection pooling?

  
Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings. (More...)

What are the advantages and disadvantages of LINQ to Sharepoint ?

  
Advantages:

Intellisense
Strongly typed access to the entities of the list
Faster development
Simplify complex queries

Disadvantages:

If the new columns are added or its datatype changed, the datacontext class used by LINQ is no longer valid and may break the code
Extra layer to the actual CAML query
(More...)

What is connection pooling and what is the maximum Pool Size in ADO.NET Connection String?

  
A connection pool is created when a connection is opened the first time. The next time a connection is opened, the connection string is matched and if found exactly equal, the connection pooling would work.
Otherwise, a new connection is opened, and connection pooling won't be used.
Maximum pool size is the maximum number of connection objects to be pooled.
If the maximum pool size is reached, then the requests are queued until some connections are released back to the pool. It is therefore advisable to close the connection once done with it. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend