views:

267

answers:

2

What is the cost of calling SqlCommandBuilder.DeriveParameters? I understand that a round-trip is required to the DB server to get the parameters. After this is called, will the information be cached by the provider, or will it be re-queried EVERY time this method is called?

+1  A: 

See this article on adding Parameter Caching to SqlCommandBuilder.DeriveParameters

Chris Ballance
Thanks. Exactly the direction I was heading in.
feihtthief
+1  A: 

Calling DeriveParameters will require a DB call (every time). There is no integrated caching, you would have to implement this yourself.

M4N