.NET 유형의 데이터 형식 매핑(SQL Server Compact Edition)

Microsoft SQL Server 2005 Compact Edition(SQL Server Compact Edition)에서는 모든 .NET 데이터 형식을 완전히 지원하지 않습니다. 따라서 ADO.NET을 사용하여 데이터에 액세스하는 경우에는 SQL Server Compact Edition 에서 지원되지 않는 형식을 지원되는 형식으로 변환해야 합니다.

데이터 형식 매핑

다음 표에서는 SQL Server Compact Edition 와 .NET 데이터 공급자 간의 데이터 형식 매핑을 보여 줍니다.

.NET 데이터 형식 데이터 형식

binary

varbinary

boolean

bit

byte

tinyint

byte[]

varbinary

datetime

datetime

decimal

numeric

double

float

guid

uniqueidentifier

image

image

int16

smallint

Uint16

uint16

int32

int

Uint32

uint32

int64

bigint

Uint64

uint64

SqlBinary

varbinary

SqlBoolean

bit

SqlByte

tinyint

SqlDecimal

numeric

SqlDateTime

datetime

SqlDouble

float

SqlGuid

uniqueidentifier

SqlInt16

smallint

SqlInt32

int

SqlInt64

bigint

SqlMoney

money

SqlSingle

real

SqlString

nvarchar

single

real

string

nvarchar

¹ SQL Server Compact Edition 에서는 SqlDecimal 데이터 형식을 최대 96비트까지 지원합니다. 96비트를 초과하는 경우 SQL Server Compact Edition 에서 오버플로 예외 오류가 발생합니다.

참고 항목

관련 자료

데이터 형식 매핑(SQL Server Compact Edition)

도움말 및 정보

SQL Server Compact Edition 지원 정보 보기