Retorna uma string que identifica a conexão atualmente em uso no SGDB utilizado.

Sintaxe

TCGetDBSID()

Retorno

Nome

Tipo

Descrição

cRet

caractere

Retorna um identificador string único, que identifica a conexão atual no SGDB.

Observações

Exemplos

user function teste()
  Local nHandle := TCLink( "MSSQL/DSNP11-MSSQL", "127.0.0.1", 7890 )
  
  conout( "Identificador da conexao no SGDB: " + TCGetDBSID() )
  
  TCUnlink( nHandle )
return

Abrangência

Este recurso requer um TOTVS | Application Server com build igual ou superior a 7.00.100812P, bem como um DBAccess Server com build igual ou superior a 20100927.

Veja também