AuthorQuestion
What is a tinyint in C#?
Posted on: 12 Jul 2011
what is a tinyint in C#?
SQL has its own datatypes.  But a small int in SQL translates to an Int16 in C#.  But there is no such thing as Int8 in C#.  So what is a tiny int in C#?

[ + ]
AuthorReply
Vulpes
  • 0
  • 0
Re: what is a tinyint in C#?
Posted on: 12 Jul 2011  
'tinyint' in SQL is equivalent to the 'byte' type in C#.

Both are single byte unsigned integers with a range of 0 to 255.

Re: what is a tinyint in C#?
Posted on: 12 Jul 2011  
tinyint = 8 bits
short = 16 bits
int = 32 bits
long = 64 bits

Admin
Being Humble is a virtue, not weakness!

Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts