title: C# Equivalent of SQL Server DataTypes
body: <p>For the following SQL Server datatypes, what would be the corresponding datatype in C#?</p>
  
  <p><strong>Exact Numerics</strong></p>
  
  <pre><code>bigint
  numeric
  bit
  smallint
  decimal
  smallmoney
  int
  tinyint
  money
  </code></pre>
  
  <hr>
  
  <p><strong>Approximate Numerics</strong></p>
  
  <pre><code>float
  real
  </code></pre>
  
  <hr>
  
  <p><strong>Date and Time</strong></p>
  
  <pre><code>date
  datetimeoffset
  datetime2
  smalldatetime
  datetime
  time
  </code></pre>
  
  <hr>
  
  <p><strong>Character Strings</strong></p>
  
  <pre><code>char
  varchar
  text
  </code></pre>
  
  <hr>
  
  <p><strong>Unicode Character Strings</strong></p>
  
  <pre><code>nchar
  nvarchar
  ntext
  </code></pre>
  
  <hr>
  
  <p><strong>Binary Strings</strong></p>
  
  <pre><code>binary
  varbinary
  image
  </code></pre>
  
  <hr>
  
  <p><strong>Other Data Types</strong></p>
  
  <pre><code>cursor
  timestamp
  hierarchyid
  uniqueidentifier
  sql_variant
  xml
  table
  </code></pre>
  
  <p>(source: <a href="http://msdn.microsoft.com/en-us/library/ms187752.aspx" rel="noreferrer">MSDN</a>)</p>