Chapter 38. The System.Data.SqlTypes Namespace

The System.Data.SqlTypes namespace contains classes for SQL Server’s native data types, such as money, tinyint, and varchar. These classes can provide faster access (because typecasting isn’t required), and eliminate conversion errors. Chapter 5 describes the DataReader methods you can use to retrieve database values in their native format. However, this technique is rarely required. Figure 38-1 shows the types in this namespace.

The System.Data.SqlTypes namespace
Figure 38-1. The System.Data.SqlTypes namespace

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.