Retorna uma string que identifica a conexão atualmente em uso no SGDB utilizado.
TCGetDBSID() |
Nome | Tipo | Descrição |
---|---|---|
cRet | caractere | Retorna um identificador string único, que identifica a conexão atual no SGDB. |
user function teste() Local nHandle := TCLink( "MSSQL/DSNP11-MSSQL", "127.0.0.1", 7890 ) conout( "Identificador da conexao no SGDB: " + TCGetDBSID() ) TCUnlink( nHandle ) return |
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.