Hi,
I placed several SqlDataSource objects on my page which work with the same database (same connection string).
As I know, connection operation to database is costly in the performance prespective.
Do these SqlDataSource controls work with the same connection object or each of them create his own connecton object?
If each create it's own, then can they be changed to work with one connection object?
Thanks
As long as the connections strings are exactly identical, then the connection will get reused automatically as connections are automatically pooled.
Read tip #3:http://msdn.microsoft.com/msdnmag/issues/05/01/ASPNETPerformance/#S4
|||Thanks,
Yet, another question:
If a SqlDataSource is not connected to a data UI control than does it still go retrieving the data or does it wait to be useed?
|||It waits for the data to be requestsed such as by calling its Select() method
No comments:
Post a Comment