O'Reilly logo

Essential ADO.NET by Bob Beauchemin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A.1. DbType Enumeration

Table A-1 is the DbType enumeration from the System.Data namespace.

Table A-1. DbType enumeration members and meanings
Member Name Description
AnsiString A variable-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
Binary A variable-length stream of binary data ranging between 1 and 8,000 bytes. Note: ADO.NET cannot correctly infer the type if the byte array is greater than 8,000 bytes. Explicitly set the object when working with byte arrays larger than 8,000 bytes.
Boolean A simple type representing Boolean values of true or false.
Byte An 8-bit unsigned integer.
Currency A currency value ranging from –263 (or –922,337,203,685,477.5808) to 263 –1 (or +922,337,203,685,477.5807) with an accuracy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required