Welcome to MSDN Blogs Sign in | Join | Help

February 2009 - Posts

Immutable objects in Fluent Interfaces: a lesson from Functional Programming

Fluent interfaces are a nice way of building up an API which reads very nicely. Chaining methods together is often a big part of fluent interfaces, but doing so isn't always as straightforward as it looks, especially for configuration objects. Suppose
Posted by laurionb | 1 Comments

Cheaply estimating the number of records in a table

Counting the number of records in a table can be extremely expensive, as it requires reading all the database pages off disk. It is possible to get a reasonably accurate estimate the number of records in a table by using the JetGetRecordPosition API.
 
Page view tracker