Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the C# Equivalent of SQL Server DataTypes?
The following table displays the C# equivalent of SQL Server datatypes −
| SQL Server data type | Equivalent C# data type |
|---|---|
| varbinary | Byte[] |
| binary | Byte[] |
| image | None |
| varchar | None |
| char | None |
| nvarchar | String, Char[] |
| nchar | String, Char[] |
| text | None |
| ntext | None |
| rowversion | Byte[] |
| bit | Boolean |
| tinyint | Byte |
| smallint | Int16 |
| int | Int32 |
| bigint | Int64 |
| smallmoney | Decimal |
| money | Decimal |
| numeric | Decimal |
| decimal | Decimal |
| real | Single |
| float | Double |
| smalldatetime | DateTime |
| datetime | DateTime |
| table | None |
| cursor | None |
| timestamp | None |
| xml | None |
Advertisements