惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
有赞技术团队
有赞技术团队
月光博客
月光博客
M
MIT News - Artificial intelligence
V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
雷峰网
雷峰网

博客园 - 笑清风

IDEA 2025.2 Maven 在windows下编译打包中文乱码解决方案 milvus相关概念 milvus介绍 Mockito之doThrow 关于行为面试法——STAR JVM 内存分析工具 MAT 的深度讲解与实践——入门篇《转》 linux top 中的time+ notepad++删除包含指定字符串的行(正则) JVM指令码表 Hadoop家族成员概述 轻松把玩HttpClient之封装HttpClient工具类 Base64 SOAP1.1&SOAP1.2 画图解释SQL联合语句 Elasticsearch相关资源 SQL Server 数据类型映射 Rethrowing exceptions and preserving the full call stack trace The CLR's Thread Pool .Net下获取程序路径的方法
SQL Server类型的对应关系
笑清风 · 2013-10-08 · via 博客园 - 笑清风
bit bool
tinyint byte
smallint short
int int
bigint long
real float
float double
money decimal
datetime DateTime
char char
varchar string
nchar char
nvarchar string
text string
ntext string
image byte[]
binary byte[]
uniqueidentifier Guid

MSSQL Server类型

C#类型

DbType      sqltype

AnsiString:VarChar

Binary:VarBinary 

Byte:TinyInt 

Boolean:Bit 

Currency:Money 

Date:DateTime 

DateTime:DateTime 

Decimal:Decimal 

Double:Float 

Guid:UniqueIdentifier 

Int16:SmallInt 

Int32:Int 

Int64:BigInt 

Object:Variant 

Single:Real 

String:NVarChar 

Time:DateTime 

AnsiStringFixedLength:Char 

StringFixedLength:NChar 

Xml:Xml 

DateTime2:DateTime2 

DateTimeOffset:DateTimeOffset