Boa Tarde José!!!
Tudo bem??
Para vc trabalhar com acesso a dados remoto, vc deve criar uma conexão ODBC e utilizar o comando SQLCONNECT() ou criar uma string de conexão codigo abaixo:
cStrCon=["]+[DRIVER={SQL Server};DATABASE=]+cBanco+[;Server=]+cServ+[;UID=]+cUsu+[;pwd=]+cSenha+["]
nHandle2=SQLSTRINGCONNECT( Eval(cStrCon), .T. )
nHandle=SQLCONNECT(nHandle2)
If nHandle < 1
Return .f.
Endif
caso vc não tenha entendido, mande um e-mail para lribeiro@ldsoft.com.br
espero ter ajudado!!!
abraços
Luis
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only