Übersichten

Datentypen

Tabelle 3.15 Datentypen

.NET Framework-Typ

System.Data.DbType

SqlDbType

OleDbType

 

AnsiString

VarChar

VarChar

bool

Boolean

Bit

Boolean

byte

Byte

TinyInt

UnsignedTinyInt

char

  

Char

 

Currency

Money

Currency

DateTime

DateTime

DateTime

DBTimeStamp

 

Date

DateTime

DBDate

double

Double

Float

Double

float

Single

Real

Single

int

 

Int

Integer

long

 

BigInt

BigInt

object

Object

Variant

Variant

short

 

SmallInt

SmallInt

string

String

NVarChar

VarWChar

 

Time

DateTime

DBTime

Connection-Objekt

Tabelle 3.16 Eigenschaften des Connection-Objekts

Eigenschaft

Beschreibung

ConnectionString

Verbindungszeichenfolge zur Datenbank (Lese-/Schreibzugriff)

ConnectionTimeout

Zeit (in Sekunden) für Verbindungsversuch (Lesezugriff)

Database

Name der aktuellen Datenbank (Lesezugriff)

DataSource

Name der Datenbankdatei bzw. ...

Get Datenbank-Programmierung mit Visual Basic 2012 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.