1 2 unit Unit1; 3 4 interface 5 6 uses 7 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 8 Dialogs; 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 // First you connect to sql server 32 AdoConnection.connected := true; 33 // then 34 ADOCommand1.CommandText := 'Create DataBase Saves '+ 35 'On '+ 36 '(Name = databasename, '+ 37 'FileName = '+QuotedStr('C:\database.MDF')+', '+ 38 'Size = 50MB, '+ //first size 39 'FileGrowth = 30MB) '+ //growth size in MB 40 'Collate Arabic_CI_AI ';// unicode change to arabic or other unicode 41 ADOCommand1.Execute; 42 43 44 end; 45 46 end.