Fórum Como aumentar ou diminuir o valor do generator... #54018
29/11/2005
0
Max.sgj
Curtir tópico
+ 0Posts
30/11/2005
Edilcimar
Gostei + 0
30/11/2005
Max.sgj
IBQuery1.SQL.Add(´SET GENERATOR GEN_TELEFONE_ID TO ´+inttostr(5);
Está dando erro...
Gostei + 0
30/11/2005
Edilcimar
Begin
Close;
Sql.Clear;
Sql.Add (´SET GENERATOR TELEFONE_NOMECAMPO_GEN to ´ + inttostr(NumeroGerador));
ExecSql;
Close;
End;
Gostei + 0
30/11/2005
Max.sgj
IBQuery1.SQL.Add(´SET GENERATOR ENDERECO CODIGO ENDERECO_GEN TO ´+inttostr(5);
Aonde estou errando...
Gostei + 0
30/11/2005
Edilcimar
Gostei + 0
30/11/2005
Max.sgj
IBQuery1.SQL.Clear;
IBQuery1.SQL.Add(´SET GENERATOR ENDERECO CODIGO ENDERECO_GEN TO ´+inttostr(5);
IBQuery1.execSQL;
IBQuery1.SQL.Clear;
Aonde estou errando...
Gostei + 0
30/11/2005
Edilcimar
Gostei + 0
30/11/2005
Max.sgj
IBQuery1.SQL.Add(´SET GENERATOR ENDERECO CODIGO ENDERECO_GEN TO ´+inttostr(5));
IBQuery1.execSQL;
IBQuery1.SQL.Clear;
Aonde estou errando...
Gostei + 0
30/11/2005
Edilcimar
compare isto com o que vc está escrevendo, letra por letra
Gostei + 0
30/11/2005
Vinicius2k
Se sim:
SET GENERATOR ENDERECO_GEN TO <valor>
Um generator não está ligado à nenhuma tabela em específico e deve ser referenciado como um objeto independente.
T+
Gostei + 0
30/11/2005
Edilcimar
Gostei + 0
30/11/2005
Vinicius2k
Eu também ! :)
Mas pareceu-me não ter ficado claro ao colega visto que a instrução que ele tentava passar referenciava também a tabela e campo, além do nome do generator.
T+
Gostei + 0
30/11/2005
Max.sgj
Gostei + 0
30/11/2005
Max.sgj
_DM_INTERBASE.IBDatabase1.DatabaseName:= ´C:\MaxProgramador\Pro Projeto\Teste\BD Interbase\BD.GDB´;
_DM_INTERBASE.IBDatabase1.LoginPrompt:= false;
_DM_INTERBASE.IBDatabase1.Params.Add(´user_name=sysdba´);
_DM_INTERBASE.IBDatabase1.Params.Add(´password=masterkey´);
_DM_INTERBASE.IBDatabase1.SQLDialect:= 3;
_DM_INTERBASE.IBDatabase1.DefaultTransaction:= IBTransaction1;
_DM_INTERBASE.IBDatabase1.Connected:= false;
_DM_INTERBASE.IBTransaction1.defaultdatabase:= _DM_INTERBASE.IBDatabase1;
_DM_INTERBASE.IBTransaction1.DefaultAction:= TACommitRetaining;
_DM_INTERBASE.IBTransaction1.Active:= false;
//Como Gerar no Generator...
With _DM_INTERBASE.IBQuery1 do
Begin
Close;
Sql.Clear;
Sql.Add (´SET GENERATOR ENDERECO_GEN TO ´+inttostr(10)
);
ExecSql;
Close;
End;
Gostei + 0
01/12/2005
Max.sgj
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)