C# to MS SQL DataType Mappings

Al Jachimiak
Today I Googled
Published in
1 min readJan 11, 2017

Today I Googled

tinyint in c#

What I was Doing

A schema in our db had changed and the data type used in MSSQL was tinyint. When passing that value in the backend, I needed to know which C# datatype to declare.

Solution

This stackoverflow post seems to be the best and fastest answer. Also, the :visited style on the link in google tells me that this isn’t the first time I’ve been here!

--

--