Forum guidelines
AuthorQuestion
What is a tinyint in C#?
Posted By William Thompson 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 By Vulpes 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 By Mahesh Chand on 12 Jul 2011  
tinyint = 8 bits
short = 16 bits
int = 32 bits
long = 64 bits

C# Corner
Aspose File APIs

SPONSORED BY

JetBrains ReSharper Ultimate
.NET code analysis, refactorings, navigation, unit testing, code coverage and profiling in Visual Studio, a bonus for C++ devs, bundled at 50% off.