Q&A

Q1:I don't get it. Why doesn't a DataReader support databinding on Windows Forms? It seems like so much less code to write!
A1: It's true that using DataReaders amounts to writing less code. To bind to a control in Windows Forms, the class must expose the IList or IListSource interface of the System.ComponentModel namespace. A DataReader is an unbuffered stream of data that does not support these interfaces.
Q2:You kept mentioning scalability. How can I achieve maximum performance and scalability in my data access applications?
A2: Even though applications might be hindered by the hardware they're running on, writing efficient code also makes a big difference. Follow these tips to maximize your code performance:
  • Always open database connections ...

Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.