Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter caching
Message
From
30/08/2003 09:00:16
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
29/08/2003 07:31:30
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00824502
Message ID:
00824758
Views:
25
The advantage is that you don't have to hand-code a bunch of SqlCommand.Parameters.Add() statements. The other available method of setting up the SqlCommand parameters is to use the SqlCommandBuilder, which has a larger footprint than the Blocks and retreives the parameter metadata from SQL Server each time it is used.

P.S. The parameters collection is instanced each time a SqlCommand object is created, but not when the stored procedure is used.

>All,
>
>In the Microsoft Data Access Application Block I noticed that parameter caching was used. What are the advantages of data caching instead of instantiating the parameter objects each time a stored procedure is used?
>
>Thanks
>
>Rex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform