unit DataModule;

interface

uses
  SysUtils, Classes, DB, ADODB, DBXpress, SqlExpr, FMTBcd, DBClient, WideStrings;

type
  TDM = class(TDataModule)
    SQLConnection1: TSQLConnection;
    SQLDataSet1: TSQLDataSet;
    SQLDataSet1idosoby: TIntegerField;
    SQLDataSet1nazwisko: TStringField;
    SQLDataSet1imie: TStringField;
    SQLDataSet1dataur: TDateField;
    SQLDataSet1mcowosc: TStringField;
    SQLDataSet1ulicainr: TStringField;
    SQLDataSet1kodp: TStringField;
    SQLDataSet1miasto: TStringField;
    SQLDataSet1pesel: TStringField;
    procedure DataModuleCreate(Sender: TObject);
    procedure DataModuleDestroy(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  DM: TDM;

implementation

{$R *.dfm}

procedure TDM.DataModuleCreate(Sender: TObject);
begin
   SQLConnection1.Connected := True;
   SQLDataSet1.Active       := false;
end;

procedure TDM.DataModuleDestroy(Sender: TObject);
begin
   SQLDataSet1.Active       := False;
   SQLConnection1.Connected := False;
end;

end.
