Atualizações de Arquivos

Delphi

25/11/2003

Ola Pessoal
Alguem poderia me dar uma ideia de como e feita atualizações
de bancos de dados do Firebird? Exemplo:

Tenho um sistema em um cliente, crio uma tabela no firebird do meu
micro, levo-a no cliente. O que eu gostaria de saber, é como poderia
fazer que quando eu colocasse mais alguns campos na tabela do meu
micro e levasse no cliente o sistema automaticamente faria a atuali-
zação das tabelas.(Pega a tabela antiga e substitui pela nova)



Grato


Claudio


Claudiojr

Claudiojr

Curtidas 0

Respostas

Maxsoftware

Maxsoftware

25/11/2003

_DM_INTERBASE.IBQuery.sql.clear;

//_DM_INTERBASE.IBScript1.ExecuteScript;


//Como criar uma tabela...1
_DM_INTERBASE.IBQuery.SQL.Add(´Create Table Telefone_1´);
_DM_INTERBASE.IBQuery.SQL.Add(´(NumeroTel VarChar(15), Ramal VarChar (6), NomeContato VarChar(50), CodCli Integer ,Contador Integer Not Null Primary Key )´);
_DM_INTERBASE.IBQuery.execSQL;
_DM_INTERBASE.IBQuery.sql.clear;

//Como Criar um Generator...
_DM_INTERBASE.IBQuery.SQL.Add(´Create Generator Gen_Telefone_1´);
_DM_INTERBASE.IBQuery.execSQL;
_DM_INTERBASE.IBQuery.sql.clear;

//Como Criar Trigger...
_DM_INTERBASE.IBQuery.SQL.Add(´CREATE TRIGGER TELEFONE_BI_1 FOR TELEFONE_1 ACTIVE BEFORE INSERT POSITION 0 AS BEGIN NEW.CONTADOR = GEN_ID(GEN_TELEFONE_1,1); END;´);
_DM_INTERBASE.IBQuery.execSQL;
_DM_INTERBASE.IBQuery.sql.clear;

//Como Criar Procudere...


Aqui está um exemplo daqui por diante vc faz...


Max...


GOSTEI 0
POSTAR