Luis,
Se voc� concatenar o conte�do da sua colRowid no
comando, sem as aspas da
String, vai funcionar!
Se voc� concatenar o
comando assim:
"Update tabela set NomeEmpresa=:tblEmpresa.colNomeEmpresa
where Rowid=" ||
tblEmpresa.colRowid
O Centura enviar� o seguinte
comando para o banco de dados:
Update tabela set
NomeEmpresa=:tblEmpresa.colNomeEmpresa where
Rowid=
0x00000000010C9633
Espero ter ajudado.
Sds
Fabiano
Reis
Banco WestLB do Brasil
Systems Development
tel: 55 + 11 +
5504-9833
"Luis Fernando
Saito" <
[EMAIL PROTECTED]>
Sent by:
[EMAIL PROTECTED]
23/06/2003
11:58
Please respond to
sqlwin
To: <
[EMAIL PROTECTED]>
cc:
Subject:
[sqlwin] Rowid no Sybase
Ol� pessoal,
estou precisando de
uma ajuda. Tenho uma aplica��o que tem v�rias tables
windows, populadas de
tabelas de banco de dados.
Uma caracteristica � a existencia de uma coluna
Rowid nessas tabelas,
utilizadas para fazer atualiza��es. Ex. Para um table
windows empresa:
Update tabela set NomeEmpresa=:tblEmpresa.colNomeEmpresa
where Rowid
=:tblEmpresa.colRowid.
Isso funcionamente perfeitamente
quando trabalho com Oracle(que j� possui
essa coluna default) e
MS-SqlServer(onde defino como timestamp). Agora
estou tendo problema com
Sybase, que ele n�o consegue entender o Rowid.
Quando executo o update, ele
deve estar interpretando com texto, pois a
colRowid, defino com datatype
String.
Uma solu��o seria tranformar o texto em hexadecimal. Algu�m sabe a
fun��o
no sybase pra tranformar uma string em hexadecimal? ou teria outra
solu��o?
Att.
Luis Fernando Minoru Saito
Tecnologia de
Informa��o
Tel: (55 11) 3078 1755 ramal 39
[EMAIL PROTECTED]SCA
Systema Consultores Associados
visite o website
http://www.scasystema.com.br---
Outgoing
mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.490
/ Virus Database: 289 - Release Date:
16/6/2003
Diese Nachricht ist vertraulich.
Sie ist ausschliesslich fuer
den im Adressfeld ausgewiesenen Adressaten
bestimmt.
Sollten Sie nicht der vorgesehene Empfaenger sein, so
bitten
wir um eine kurze Nachricht. Jede unbefugte Weiterleitung
oder
Fertigung einer Kopie ist unzulaessig. Da wir nicht die
Echtheit oder
Vollstaendigkeit der in dieser Nachricht
enthaltenen Informationen
garantieren koennen, schliessen wir
die rechtliche Verbindlichkeit der
vorstehenden Erklaerungen
und Aeusserungen aus. Wir verweisen in diesem
Zusammenhang
auch auf die fuer die Bank geltenden Regelungen ueber
die
Verbindlichkeit von Willenserklaerungen mit verpflichtendem
Inhalt,
die in den bankueblichen Unterschriftenverzeichnissen
bekannt gemacht
werden.
This message is confidential and may be privileged. It
is
intended solely for the named addressee. If you are not
the
intended recipient please inform us. Any unauthorised
dissemination,
distribution or copying hereof is prohibited.
As we cannot guarantee
the genuineness or completeness of
the information contained in this
message, the statements
set forth above are not legally binding. In
connection
therewith, we also refer to the governing regulations of
the
bank concerning signatory authority published in the
standard bank
signature lists with regard to the legally
binding effect of statements
made with the intent to
obligate the bank.
===============Lista de
Centura SQLWindows
Administrador :
[EMAIL PROTECTED][
http://www.centuraexplorer.com
]
Para sair desta lista mande mensagem para:
[EMAIL PROTECTED] sem nada
no Subject e
com o comando a seguir no corpo da msg:
"unsubscribe
sqlwin" (sem as aspas)
===============