Alaska Software Inc. - Conect to Advantage Database Server very slow with SqlExpress but I don´t think the problem is in SqlExpress.
Username: Password:
AuthorTopic: Conect to Advantage Database Server very slow with SqlExpress but I don´t think the problem is in SqlExpress.
César Calvo Conect to Advantage Database Server very slow with SqlExpress but I don´t think the problem is in SqlExpress.
on Sat, 29 Oct 2016 08:14:04 +0200
Hello friends.
I don´t know when I connect with ADS the connection is very slow.
Could you help me?
Regards.
César.


cRut := "\\cesarcc\DBFS\TID\"

cDic := "A_DICTELID.ADD"
cUsu := "adssys"
cPas := "elbarraco"

cSrv := "ADS_LOCAL_SERVER + ADS_REMOTE_SERVER"

oCon := SQLConnection():new()

cCon := "DRIVER={Advantage StreamlineSQL ODBC};" + "DataDirectory=" + cRut + 
cDic + ";UID=" + cUsu + ";PWD=" + cPas + ";"

IF !oCon:driverconnect(nil,cCon)
   MsgBox("Imposible conectar al servidor de Advantage Database Server en " 
+ cRut + cDic)
   ELSE
   Infobox("Conectado")
   oCon:destroy()
ENDIF