1
2 unit Unit1;
3
4 interface
5
6 uses
7 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
8 Dialogs, DB, ADODB, StdCtrls;
9
10 type
11 TForm1 = class(TForm)
12 Button1: TButton;
13 ADOConnection1: TADOConnection;
14 procedure Button1Click(Sender: TObject);
15 private
16 { Private declarations }
17 public
18 { Public declarations }
19 end;
20
21 var
22 Form1: TForm1;
23
24 implementation
25
26 {$R *.dfm}
27
28 procedure TForm1.Button1Click(Sender: TObject);
29 begin
30
31 ADOCommand1.CommandText := 'Create Table Table name '+
32 '(Radif BigInt IDENTITY(1,1) Primary Key, '+
33 'Number Nchar(20) Not Null, '+
34 'Semat Nchar(30), '+
35 'About Nchar(50) Not Null, '+ {Create Table With Example Field DataBase}
36 'OLEDoc Image Not Null);';
37 ADOCommand1.Execute;
38
39
40 end;
41
42 end.
|