Forum guidelines
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
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

C# Corner
Employers - Post Free Jobs

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.