Fórum Cannot drop the table #25165
05/09/2005
0
Cannot drop the table ´TB´, because it doesn´t exist in the system catalogs
Vi alguma coisa na internet sobre o assunto, mas não entendi direito:
http://www.roguewave.com/support/docs/hppdocs/dbtug/5-5.html
http://www.object-craft.com.au/pipermail/python-sybase/2003-December/000202.html
http://lists.ibiblio.org/pipermail/freetds/2003q2/012643.html
http://www.roguewave.com/support/docs/sourcepro/dbcoreug/6-5.html
Alguém sabe o que pode ser e o que tenho que fazer?
Grato!
[color=green:4a9a1219bd]Movido de Delphi para Bancos de Dados[/color:4a9a1219bd]
Peununes
Curtir tópico
+ 0Posts
05/09/2005
Rjun
Gostei + 0
05/09/2005
Peununes
uso o Sybase!
Gostei + 0
05/09/2005
Rjun
Gostei + 0
05/09/2005
Peununes
Gostei + 0
05/09/2005
Martins
A correção ficou bacana, agora vamos a tabela temporaria, sua base é SYBASE?
vc cria a tabela normalmente e para dropar, como vc tá fazendo?
parecido com isso:
DROP DATABASE @VendasPrazo
ou não tem nada a ver, hehehe!!!!
Gostei + 0
05/09/2005
Rjun
drop table TBNomeTabela
Gostei + 0
05/09/2005
Peununes
Gostei + 0
05/09/2005
Peununes
Gostei + 0
05/09/2005
Rjun
Gostei + 0
05/09/2005
Peununes
Gostei + 0
05/09/2005
Rjun
Gostei + 0
05/09/2005
Peununes
Estou fazendo manutenção em um sistema, ok? Então o código não foi feito por mim...
O desenvolvedor anterior fez o seguinte, num objeto TQuery ele escreveu na propriedade SQL:
create table #temp_evento(dat_evento datetime null,
cod_tipo_evento integer null,
txt_tipo_evento char(40) null,
cod_tipo_evento_pai integer null,
txt_tipo_evento_pai char(40) null)
Create Table temp_principal (dat_evento datetime null,
cod_tipo_evento integer null,
txt_tipo_evento char(40) null,
cod_plano_contabil integer null,
ind_receb_pagto char(1) null,
cod_tipo_evento_pai integer null,
txt_tipo_evento_pai char(40) null)
Depois em outra TQuery ele insere daddos e em outra na propriedade SQL ele ´dropa´:
drop table #temp_evento
Drop Table temp_principal
Depois no código ele executa:
try
QryDelTemp.ExecSQL;
except end;
QryCriaTemp.ExecSQL;
Basicamente é isso...
Gostei + 0
05/09/2005
Rjun
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)