Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi Microsoft Access und create table (https://www.delphipraxis.net/44955-microsoft-access-und-create-table.html)

mumu 27. Apr 2005 14:06

Datenbank: Microsoft Access • Version: 2003 • Zugriff über: ODBC

Microsoft Access und create table
 
also ich möchte in access direkt ein "create table"-statement ausführen, ober kann ich nur durch klicken mit der maus eine neue tabelle erstellen?

shmia 27. Apr 2005 14:23

Re: Microsoft Access und create table
 
Zitat:

Zitat von mumu
also ich möchte in access direkt ein "create table"-statement ausführen, ober kann ich nur durch klicken mit der maus eine neue tabelle erstellen?

Der Unterbau von Access nennt sich Jet Engine. Die Jet Engine arbeit auch ohne dass die Anwendung
Access auf deinem Rechner installiert ist.
z.Zt. ist die Jet Engine 4.0 aktuell.
Die Jet Engine versteht die SQL Anweisung CREATE TABLE und führt diese aus.
SQL-Code:
CREATE TABLE NrKreisGlobal (
IdGlobalNrKreis varchar (20) NOT NULL ,
Beschreibung varchar (80) NOT NULL ,
AktNo varchar (20) NOT NULL ,
StartNo varchar (20) NOT NULL ,
EndNo varchar (20) NOT NULL ,
Mask varchar (20) NOT NULL ,
RollOverWarning bit NOT NULL ,
Disabled bit NOT NULL ,
LastChange datetime NULL)
Wenn du das in eine TQuery einpackst und ExecSQL ausführst, wird die Tabelle erzeugt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:00 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz