topic
stringlengths
1
63
text
stringlengths
1
577k
ADS com FW2.8
Tem que atualizar a versão do ADS
ADS com FW2.8
Acho que vc não entendeu isto acontece em bases sem ads. Voces tem que ver que eu nao uso ads em todos os clientes. e Isto acontece logo ao iniciar o meu sistema mesmo que tenha ou não o ads. Isso é uma vergonha a cada mudança de versão os cara mexe em tudo e fazem um monte de cagada. Faz quase um mes que tento fazer esta versão 2.8 com xh 0.99.71 e nada so continuo tentando por que é uma necessidade senão ja tinha desistido.
ADS com FW2.8
disculpe cara.. acho que essas mudanças corresponde a [x]harbour.. voce pode procurar... sobre esso. e mais.. ta um link <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=4876&highlight=438">http://fivetechsoft.com/forums/viewtopi ... hlight=438</a><!-- m --> voce encontra solucão a seus problemas.. e so procurar muito bem.
ADS compile error
To AllI am re-compiling an old ADS application .. ace32.dll has not changed nor has ace32.lib .. I am getting this error :Unresolved external 'AdsSkipUnique' referenced from c:\xharbour\rddads.lib|ads1from FTDN Title: xHarbour for BCC - 21/August/2008Hit a brick wall here .. Any ideas ??Rick LipkinSC Dept of Health, USA
ADS con DBF - registros borrados
Buenas noches, Necesito saber si se puede incluir en un query ADS el estado de los registros marcados para borrar. Por ej., si lo hago sin query hago algo así: [code=fw:176eiyef]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !oDbf:<span style="color: #000000;">eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   Aadd<span style="color: #000000;">&#40;</span>aPedidos , <span style="color: #000000;">&#123;</span>oDbf:<span style="color: #000000;">ENVIADO</span> , alltrim<span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">NOMBRE</span><span style="color: #000000;">&#41;</span> , ;<br />           oDbf:<span style="color: #000000;">FECHA</span> , oDbf:<span style="color: #000000;">FECHAOUT</span> , oDbf:<span style="color: #000000;">NOTA</span> , ;<br />           alltrim<span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">NOMBREPEDI</span><span style="color: #000000;">&#41;</span> , <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">deleted</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , .t. , .f.<span style="color: #000000;">&#41;</span>   <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   oDbf:<span style="color: #000000;">skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">enddo</span></div>[/code:176eiyef] Con " if(oDbf:deleted() , .t. , .f.)" logro colocar un valor ".t." cuando está marcado para borrar y un ".f." cuando no lo está. [b:176eiyef][color=#0000BF:176eiyef]Lo que necesito saber es si se puede y como se hace con un query ADS. ¿Que debo incluir en el siguiente query para lograr que cargue un valor de acuerdo a si el registro está marcado para borrar[/color:176eiyef]?[/b:176eiyef] [code=fw:176eiyef]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> sqlarea-><span style="color: #000000;">&#40;</span>!eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>    <br /><br />    Aadd<span style="color: #000000;">&#40;</span>aPedidos , <span style="color: #000000;">&#123;</span>sqlarea->ENVIADO , alltrim<span style="color: #000000;">&#40;</span>sqlarea->NOMBRE<span style="color: #000000;">&#41;</span> , ;<br />     sqlarea->FECHA , sqlarea->FECHAOUT , sqlarea->NOTA , ;<br />     alltrim<span style="color: #000000;">&#40;</span>sqlarea->NOMBREPEDI<span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>        <span style="color: #B900B9;">//  esto no funciona >>> ", if(sqlarea->deleted() , .t. , .f.)"</span><br />    sqlarea-><span style="color: #000000;">&#40;</span> DbSkip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">enddo</span></div>[/code:176eiyef] Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
ADS con DBF - registros borrados
Hola no lo he probado, pero se me ocurre cambiar [code=fw:1ugdh8w2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />AdsSetDeleted<span style="color: #000000;">&#40;</span> .f. <span style="color: #000000;">&#41;</span><br />Sql...<br />bla-bla<br />AdsSetDeleted<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span>&nbsp; &nbsp; <span style="color: #B900B9;">//SET DELETED OFF</span></div>[/code:1ugdh8w2]
ADS con DBF - registros borrados
Patricio, Gracias por responder, pero no tengo problema para que me liste los registros borrados. Lo que quiero es IDENTIFICARLOS dentro del array que es creado. O sea, cuando el registro esté marcado para borrar, en una columna del array quede ".t." y cuando no lo esté quede ".f." Sería algo así como [code=fw:1axty6js]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>sqlarea->deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , .t. , .f. <span style="color: #000000;">&#41;</span></div>[/code:1axty6js] Pero obviamente esto no se puede, sólo lo pongo como ejemplo de lo que quisiera lograr. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
ADS con SQL busqueda
Estimados he creado una consulta SQL desde ADS, pero ahora quiero implementarla en un xbrowse y poder ir buscando mientras uno escribe, alguien ha implementado esto sobre la consulta SQL
ADS con SQL busqueda
Saludos ! Chequea este post <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=17550&hilit=Busqueda+incremental#p91608">viewtopic.php?f=6&t=17550&hilit=Busqueda+incremental#p91608</a><!-- l --> Este otro <!-- m --><a class="postlink" href="http://bielsys.blogspot.com/2008/04/usando-origenes-de-datos-ado-y-2.html">http://bielsys.blogspot.com/2008/04/usa ... o-y-2.html</a><!-- m -->
ADS con SQL busqueda
Muchas gracias por la info
ADS connection string from remote server
some sample connection advantage database server connection string from remote server? thanks
ADS connection string from remote server
recordar abrir el puerto indicado, y si es por por conexion wan hacer el redireccionamiento en el router. aca COMPRESSION=Internet solo cuando la conexion en por WAN, tanto LAN como LOCAL no aplica. ads.ini [quote:kymghyqf] [SETTINGS] RETRY_ADS_CONNECTS=1 MAX_TIMEOUTS=40 COMPRESSION=Internet USE_TCP_IP=1 [/quote:kymghyqf] aca yo cambiaba el Tipo a 1,2,3 segun como queria la conexion, si por WAN, LAN, LOCAL aca \\SRV-DCFS-01 es el nombre del servidor. aca \\EMPRESA.ZAPTO.ORG es un dominio dinamico que tenia con NO-IP aca :6263 es el puerto que usa ADS. empresa.ini [quote:kymghyqf] [DATOS] Tipo=1 Conexion1=.\DATOS\DBEMPRESA.ADD Conexion2=\\SRV-DCFS-01:6262\DATOSEMPRESA\DBEMPRESA.ADD Conexion3=\\EMPRESA.ZAPTO.ORG:6263\DATOSEMPRESA\DBEMPRESA.ADD [/quote:kymghyqf] conectar.prg [code=fw:kymghyqf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"credicom.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> nServer<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Conectar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> lConectado  := <span style="color: #00C800;">FALSE</span><br />   <span style="color: #00C800;">LOCAL</span> hArchivoIni := <span style="color: #00C800;">NIL</span><br />   <span style="color: #00C800;">LOCAL</span> cError      := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cServidor   := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> nServidor   := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">LOCAL</span> bConectar   := <span style="color: #000000;">&#123;</span>|| lConectado := AdsConnect60<span style="color: #000000;">&#40;</span> cServidor, nServidor, <span style="color: #ff0000;">"EmpresaUser"</span>, <span style="color: #ff0000;">"EmpresaPassword@"</span>, <span style="color: #00C800;">NIL</span> , @hConexion <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> bAbrir      := <span style="color: #000000;">&#123;</span>|| lConectado := Conectar_AbrirTablas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   hArchivoIni := HB_ReadIni<span style="color: #000000;">&#40;</span> Lower<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">".<span style="color: #000000;">\E</span>MPRESA.INI"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> HB_IsNil<span style="color: #000000;">&#40;</span> hArchivoIni <span style="color: #000000;">&#41;</span><br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se pudo leer el archivo de configuración EMPRESA.INI, contacte al desarrollador del programa."</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span> lConectado<br />   <span style="color: #00C800;">ELSE</span><br />      <span style="color: #00C800;">TRY</span><br />         nConexion := Val<span style="color: #000000;">&#40;</span> hArchivoIni<span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"DATOS"</span>, <span style="color: #ff0000;">"Tipo"</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />      CATCH<br />         nConexion := <span style="color: #000000;">0</span><br />      END<br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />      <span style="color: #00C800;">CASE</span> nConexion==<span style="color: #000000;">1</span><br />         nServidor := ADS_LOCAL_SERVER<br />         cServidor := hArchivoIni<span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"DATOS"</span>, <span style="color: #ff0000;">"Conexion1"</span> <span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">CASE</span> nConexion==<span style="color: #000000;">2</span><br />         nServidor := ADS_REMOTE_SERVER<br />         cServidor := hArchivoIni<span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"DATOS"</span>, <span style="color: #ff0000;">"Conexion2"</span> <span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">CASE</span> nConexion==<span style="color: #000000;">3</span><br />         nServidor := ADS_AIS_SERVER<br />         cServidor := hArchivoIni<span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"DATOS"</span>, <span style="color: #ff0000;">"Conexion3"</span> <span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">OTHERWISE</span><br />         MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"El archivo de conexión esta corrupto, contacte al desarrollador del programa."</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">RETURN</span> lConectado<br />      <span style="color: #00C800;">ENDCASE</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> cServidor <span style="color: #000000;">&#41;</span><br />      MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Conectando con el servidor de datos, espere un momento."</span>, <span style="color: #ff0000;">"EMPRESA"</span>, bConectar <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> !lConectado<br />         AdsGetLastError<span style="color: #000000;">&#40;</span> @cError <span style="color: #000000;">&#41;</span><br />         MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha podido realizar la conexión al servidor de datos: "</span> + FINL + cError + FINL + cServidor <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ELSE</span><br />         oSesion:<span style="color: #000000;">cPC_Servidor</span> := RTrim<span style="color: #000000;">&#40;</span> cServidor <span style="color: #000000;">&#41;</span><br />         MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Abriendo tablas de datos, espere un momento"</span>, <span style="color: #ff0000;">"EMPRESA"</span>, bAbrir <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">ELSE</span><br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"El archivo de conexión esta corrupto, contacte al desarrollador del programa."</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> lConectado<br /> </div>[/code:kymghyqf] [code=fw:kymghyqf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Conectar_AbrirTablas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> lTablasAbiertas := <span style="color: #00C800;">TRUE</span><br />   <span style="color: #00C800;">LOCAL</span> oError<br /><br />   <span style="color: #00C800;">TRY</span><br />      Conectar_AbrirTabla<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CONTROL"</span>,          <span style="color: #ff0000;">"CTRL"</span> <span style="color: #000000;">&#41;</span><br />      ...<br />      Conectar_AbrirTabla<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPLEADOS"</span>,       <span style="color: #ff0000;">"CEMP"</span> <span style="color: #000000;">&#41;</span><br />      ...<br />      DBSelectArea<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />   CATCH oError<br />      lTablasAbiertas := <span style="color: #00C800;">FALSE</span><br />      ShowError<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span><br />   END<br /><br /><span style="color: #00C800;">RETURN</span> lTablasAbiertas<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE Conectar_AbrirTabla<span style="color: #000000;">&#40;</span> cTabla, cAlias <span style="color: #000000;">&#41;</span><br /><br />   USE <span style="color: #000000;">&#40;</span> cTabla <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span> SHARED<br /><br />   <span style="color: #00C800;">IF</span> nServer == ADS_AIS_SERVER<br />      AdsCacheRecords<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br />      SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><br /> </div>[/code:kymghyqf]
ADS connection string from remote server
Carlos, Obrigado por responder. Meu amigo, eu gostaria de usar o ADS como MYSQL, cliente/server em uma REDE LOCAL em precisar mapear. Para conectar o cliente no servidor, eu não entendi como informar: EX - MYSQL: IP: PORTA: SERVER: user: PASS:
ADS de dbfcdxfpt a adtadiadm
Amigos: Tengo una aplicacion con dbf,cdx,fpt (base, indice, memo) y deseo pasarla a ADS nativos adt, adi, adm. (base, indice, memo) Es posible pasar los datos de una base a otra. Muchas gracias. Saludos Ruben Fernandez.
ADS de dbfcdxfpt a adtadiadm
si es posible usa append from .. via [code:1agrkxvz] SELE DOCU_ENT zap MsgRun&#40; "Espere, importando movimientos de EQA&#46;sa", "Usuario", &#123; || __dbApp&#40;"c&#58;\EQAsa\DOCU_ENT",&#123; &#125;,,,,,&#46;F&#46;,"DBFCDX"&#41; &#125; &#41; [/code:1agrkxvz] Saludos Patricio
ADS de dbfcdxfpt a adtadiadm
Muchas gracias Patricio Saludos Ruben Fernandez.
ADS de dbfcdxfpt a adtadiadm
en el sitio de google podria allar una app que desarrollo RF que pasa dbf e indices salu2 carlos vargas
ADS de dbfcdxfpt a adtadiadm
Muchas gracias Carlos. Saludos Ruben Fernandez
ADS development server
Hi, seems that Sybase is offering 2-user ADS ver 10 development server in they'r WFP conversion package for free. Also conversion samples were worth to take a look... <!-- m --><a class="postlink" href="http://response.sybase.com/forms/ADS10-2-User-vfp">http://response.sybase.com/forms/ADS10-2-User-vfp</a><!-- m --> Taavi.
ADS en un servidor Novell SB5
Saludos al foro: Estoy tratando de utilizar fwh/harbour con ads en un servidor Novell y no se conecta, este es el PRG: // Harbour Advantage RDD sample #include "FiveWin.ch" #include "ads.ch" REQUEST ADS //----------------------------------------------------------------------------// function Main() rddsetdefault( "ADS", 1 ) REQUEST ADS SET SERVER REMOTE //LOCAL SET FILETYPE TO NTX USE Clientes // Open any DBF... OrdSetFocus("DIRECCION") // Second Tag on Clientes.cdx go top Browse() // Quick browse!!! USE return nil //----------------------------------------------------------------------------// Mis programas anteriores en clipper/fw/blinker utilizaban sin problemas: REQUEST DBFNTXAX RDDSETDEFAULT( "DBFCDXAX" ) y los dll's ADSIPX16.DLL y AXCOMM16.DLL Que estoy haciendo mal ?, alguien me puede ayudar con esto? Gracias Alvaro Urdaneta
ADS en un servidor Novell SB5
Alvaro: Linkeaste el RDDADS. LIB y el ACE32.LIB a tu programa de 32 bits ? Donde pusiste las DLLs ACE32.DLL, AXCS32.DLL y ADSLOC32.DLL ? Que protocolo tienes instalado en el servidor (TCP/IP o IPX/SPX o ambos? ) Tienes instalado NetBeui en los protocolos de tus puestos ? Haz probado a ver si con el ARC tienes comunicacion con el servidor ?
ADS en un servidor Novell SB5
Hola Rene: >Linkeaste el RDDADS. LIB y el ACE32.LIB a tu programa de 32 bits ? Si >Donde pusiste las DLLs ACE32.DLL, AXCS32.DLL y ADSLOC32.DLL ? En la carpeta de la aplicacion >Que protocolo tienes instalado en el servidor (TCP/IP o IPX/SPX o ambos? ) Ambos >Tienes instalado NetBeui en los protocolos de tus puestos ? Si >Haz probado a ver si con el ARC tienes comunicacion con el servidor ? No lo tengo instalado Rene, mis sistemas en fw/clipper/blinker siempre se han conectado, la version de Ads es 5.1, novell Small Business 5, estacion win98 y Xp, el problema es que no puedo conectarlos con fwh/harbour, que me falta?. este es el build, gacias. set hdir=f:\harbour set bcdir=f:\bcc55 %hdir%\bin\harbour %1 /n /i\fwh\include;%hdir%\include /w /p %2 %3 > clip.log @type clip.log IF ERRORLEVEL 1 PAUSE IF ERRORLEVEL 1 GOTO EXIT echo -O2 -e%1.exe -I%hdir%\include %1.c > b32.bc %bcdir%\bin\bcc32 -M -c @b32.bc :ENDCOMPILE IF EXIST %1.rc %bcdir%\bin\brc32 -r %1 echo c0w32.obj + > b32.bc echo %1.obj, + >> b32.bc echo %1.exe, + >> b32.bc echo %1.map, + >> b32.bc echo \fwh\lib\FiveH.lib \fwh\lib\FiveHC.lib + >> b32.bc echo %hdir%\lib\rtl.lib + >> b32.bc echo %hdir%\lib\vm.lib + >> b32.bc echo %hdir%\lib\gtwin.lib + >> b32.bc echo %hdir%\lib\lang.lib + >> b32.bc echo %hdir%\lib\macro.lib + >> b32.bc echo %hdir%\lib\rdd.lib + >> b32.bc echo %hdir%\lib\dbfntx.lib + >> b32.bc echo %hdir%\lib\dbfcdx.lib + >> b32.bc echo %hdir%\lib\dbffpt.lib + >> b32.bc echo %hdir%\lib\hbsix.lib + >> b32.bc echo %hdir%\lib\debug.lib + >> b32.bc echo %hdir%\lib\common.lib + >> b32.bc echo %hdir%\lib\pp.lib + >> b32.bc echo %hdir%\lib\codepage.lib + >> b32.bc rem Uncomment these two lines to use Advantage RDD echo %hdir%\lib\rddads.lib + >> b32.bc echo %hdir%\lib\Ace32.lib + >> b32.bc echo %bcdir%\lib\cw32.lib + >> b32.bc echo %bcdir%\lib\import32.lib + >> b32.bc echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc echo %bcdir%\lib\psdk\rasapi32.lib, >> b32.bc IF EXIST %1.res echo %1.res >> b32.bc rem uncomment this line to use the debugger and comment the next one rem %bcdir%\bin\ilink32 -Tpe -s @b32.bc %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR ECHO * Application successfully built %1 GOTO EXIT ECHO rem delete temporary files @del %1.c :LINKERROR ECHO * There are errors GOTO EXIT :SINTAX ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG ECHO {-- Don't specify .PRG extension GOTO EXIT :NOEXIST ECHO The specified PRG %1 does not exist :EXIT Saludos
ADS en un servidor Novell SB5
Los tiros van por el tema del protocolo.... quita el NetBeui deja solo TCP/IP e IPX/SPX. Asegurate que la trama IPX sea la misma en ambos, cliente y servidor. Si tienes novell 5.x o superior, quita el protocolo IPX y deja solo TCP/IP Instala el ARC en tu estacion de trabajo y prueba si tienes conectividad al servidor. La aplicaciones en Clipper / FW funcinan porque tienen asumido el tema del protocolo, por defaul para las aplicaciones de 16 bits es IPX/SPX, sin embargo para las aplicaciones de 32 bits hay que trabajar un poco mas con la configuracion de la red.
ADS encriptado
Gente: Alguien me pude facilitar un ejemplo para crear, administrar Dbfs encriptadas con ADS?, uso la version 6.20 gracias, Saludos
ADS encriptado
Del manual de google para ADS: 4.8.1. Protección por encriptamiento de datos: El primer esquema de protección consiste en encriptamiento de los datos mediante un algortimo de 160 bits,que garantiza claves unicas para cada carácter dentro de las tablas. A diferencia de otros mecanismos de encriptamiento, ADS puede encriptar no solo campos cadena de caracteres, sino también campos numéricos, lógicos, fecha, memo y BLOB. El proceso de encriptamiento se realiza a partir de una llamada a la función AdsEnableEncryption(), la cual recibe como parámetro una cadena de caracteres que es una “llave” de encriptamiento, a partir de la llamada a esta función todos los datos de inserción y actualización de datos se realizan de manera encriptada: [code:3pafvwsa]USE ARCHIVO&#58;DBF AdsEnableEncryption&#40;“clave2”&#41; [/code:3pafvwsa] El encriptamiento se realiza por área de trabajo, razón por la cual, es posible tener distantas llaves de encriptación para los distintos archivos [code:3pafvwsa]USE ARCH1&#46;DBF AdsEnableEncryption&#40;“clave1”&#41; USE ARCH2&#46;DBF ADSEnableEncryption&#40;“clave2”&#41; [/code:3pafvwsa] Si la tabla no se encuentra encriptada y se desea encriptar en su totalidad, se debe utilizar la función AdsEncryptTable() [code:3pafvwsa]USE ARCHIVO&#46;DBF AdsEnableEncryption&#40;“clave1”&#41; AdsEncryptTable&#40;&#41; CLOSE [/code:3pafvwsa] A partir del encriptamiento de la tabla, siempre que se haga uso de ella, será necesario utilizar la función AdsEnableEncryption() con la clave de encriptamiento adecuada, para poder hacer actualizaciones al archivo, si la clave de encriptamiento no es correcta, el archivo se abre pero no se pueden leer ni modificar datos. Cuando una tabla se encripta, también se realizan procesos de encriptamiento en la cabecera del archivo, esto se hace con el fin de que los datos no puedan ser leidos por ningún programa externo, incluyendo el ARC, el cual pedirá la clave de encriptamiento cuando se intente abrir el archivo. El proceso de encriptar / desencriptar, pasa por el servidor ADS, los datos siempre permanecen almacenados de manera encriptada y es el servidor quien se encarga de los procesos de traducción, es decir, el servidor leerá los datos de archivo encriptado, desencripta la información y los devuelve al cliente de manera desencriptada y viceversa, en los procesos de actualización / inserción, los datos son recibidos del cliente de manera desencriptada, y cuando son escritos en el archivo de datos, el servidor encripta y guarda.
ADS encriptado
Maestro: Muchisimas gracias; clarisima y muy util explicación
ADS encriptado
Mario, otra alternativa que tienes es utilizar el ARC para encriptar las tablas y utilizar diccionarios de ads, es decir no acceder a las tablas sueltas, sino, a traves de diccionario, con ello se accede de manera transparente a las tablas encriptadas, ya que el usuario y password de acceso al diccionario te habilita el uso de todas las tablas encriptadas o no. saludos Marcelo
ADS error 5159
Estimados, estoy cambiando de base de dato de (dbf) a (adt), pero me esta arrojando este error que no lo he podido decifrar ADSADT/5159 error de apertura EN CAMBIO CON DBF/CDX ME ABRE BIEN lo que hago es lo siguiente [code:1hxlwryq] __rddSetDefault&#40; "ADS" &#41; rddRegister&#40; "ADS", 1 &#41; AdsSetFileType&#40;ADS_ADT&#41; //ADS_CDX IF !AdsConnect60&#40; "\\SERVERCARMONA\ADT\DATOS\ADTBASES&#46;ADD", 2, "adssys", "1234" &#41; ALERT&#40; "ERROR&#46;&#46;&#46;" &#41; RETURN endif SELE 0 ; USE "\\SERVERCARMONA\ADT\DATOS\USUARIOS" VIA "ADS" //aqui sale el error ADSADT 5159 BROWSE&#40;&#41; [/code:1hxlwryq] cualquier ayuda bienvenida atte Patricio
ADS error 5159
Me surgen algunas preguntas.... 1) ¿ para que estas usando un diccionario de datos si vas a utilizar la tabla como tabla libre ? 2) Estas usando un servidor remoto ? 3) Tienes la tabla ADT registrada en el diccionario de datos ? No es necesario hacer una conexion a un diccionario de datos con tablas ADT, funcionan igual que los DBFs, es decir,como tablas libres.
ADS error 5159
Hola Rene Gracias por responder 1) ¿ para que estas usando un diccionario de datos si vas a utilizar la tabla como tabla libre ? R:no entiendo? 2)Estas usando un servidor remoto ? R: SI 3) Tienes la tabla ADT registrada en el diccionario de datos ? R: SI con tablas dbf/cdx lo tengo igual y me funciona muy bien tanto remoto, internet, pero ahora que estoy probando con tablas adt me sale este error, pero si le sacos las tablas al diccionario funciona bien? yo entiendo: local=sin servidor ADS remoto=con servidor ADS instalado en win2k3, etc internet= igual remoto + diccionario de datos atte Patricio nota: Lo ideal es tener las tablas en el diccionario de datos y asi poder verlas, usar las consulta SQL, etc
ADS error 5159
Estimados alguien tiene un ejemplo de como abrir una base de datos ADT y que este en el diccionario de datos desde ya gracias Patricio
ADS error 5159
Solucionado gracias a [b:3vj7mlwd]Marcelo Via Giglio[/b:3vj7mlwd] Para los que le interese: [code:3vj7mlwd]rddRegister&#40; "ADS", 1 &#41; RddSetDefault&#40;"ADS"&#41; SET FILETYPE TO ADT SET SERVER REMOTE AdsUseDictionary&#40; &#46;T&#46; &#41; AdsRightsCheck&#40; &#46;F&#46; &#41; IF !AdsConnect60&#40; "\\server\sistema\dicc&#46;add", 7, "adssys", "pass" &#41; MsgInfo&#40; "Error&#46;&#46;" &#41; Quit endif AdsUseDictionary&#40; &#46;T&#46; &#41; AdsRightsCheck&#40; &#46;F&#46; &#41; use articu shared new browse&#40;&#41; bla&#46;&#46;&#46; bla&#46;&#46; //ahora a probar &#58;-&#41; [/code:3vj7mlwd] Saludos Patricio
ADS error en apertura de DBF con alias
Hola Estoy usando ADS en modo local, cuando intento abrir una base de datos con un Alias se me produce un error y no me deja abrir el segundo archivo RddSetDefault('ADSCDX') Dbusearea(.t.,,'Diario',,.t.) browse() Se ejecuta sin inconvenientes.....a continacion Dbsusearea(.t.,,'Diario','Diario2',.t.) browse() [color=#FF4000:2ojot8qr]ME DA ERROR DE APERTURA DE DIARIO2 [/color:2ojot8qr] Alguien me puede explicar que esta pasando...esto mismo con 'DBFCDX' anda perfectamente!
ADS error en apertura de DBF con alias
please use RddSetDefault("ADS") and AdsSetFileType( ADS_CDX ) [code=fw:2828ntwn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> Main_Configurar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cPath &nbsp; &nbsp; &nbsp;:= Upper<span style="color: #000000;">&#40;</span> CurDrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\"</span> + CurDir() )<br />&nbsp; &nbsp;LOCAL lContinuar := FALSE<br /><br />&nbsp; &nbsp;HB_LangSelect( &nbsp;"</span>ESWIN<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;HB_SetCodePage( "</span>ESWIN<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp;RddSetDefault( "</span>ADS<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp;SET DEFAULT &nbsp; &nbsp; &nbsp;TO "</span>.\DATOS\<span style="color: #ff0000;">"<br />&nbsp; &nbsp;SET DECIMAL &nbsp; &nbsp; &nbsp;TO 4<br />&nbsp; &nbsp;SET EPOCH &nbsp; &nbsp; &nbsp; &nbsp;TO 1930<br />&nbsp; &nbsp;SET DATE &nbsp; &nbsp; &nbsp; &nbsp; BRIT<br />&nbsp; &nbsp;SET PATH &nbsp; &nbsp; &nbsp; &nbsp; TO ( cPath +"</span>;<span style="color: #ff0000;">"+ cPath + "</span>\DATOS<span style="color: #ff0000;">" +"</span>;<span style="color: #ff0000;">"+ cPath + "</span>\REPORTS<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;SET SOFTSEEK &nbsp; &nbsp; OFF<br />&nbsp; &nbsp;SET CENTURY &nbsp; &nbsp; &nbsp;ON<br />&nbsp; &nbsp;SET OPTIMIZE &nbsp; &nbsp; ON<br />&nbsp; &nbsp;SET CONFIRM &nbsp; &nbsp; &nbsp;ON<br />&nbsp; &nbsp;SET DELETED &nbsp; &nbsp; &nbsp;ON<br />&nbsp; &nbsp;SET FIXED &nbsp; &nbsp; &nbsp; &nbsp;ON<br />&nbsp; &nbsp;SET TRIMFILENAME ON<br />&nbsp; &nbsp;SET DIRCASE &nbsp; &nbsp; &nbsp;LOWER<br />&nbsp; &nbsp;SET FILECASE &nbsp; &nbsp; Lower<br /><br />&nbsp; &nbsp;AdsSetCharType( ADS_ANSI )<br />&nbsp; &nbsp;AdsSetFileType( ADS_CDX )<br />&nbsp; &nbsp;AdsRightsCheck( FALSE )<br />&nbsp; &nbsp;AdsLocking( FALSE )<br />...<br /></span></div>[/code:2828ntwn]
ADS error en apertura de DBF con alias
Hola Carlos Gracias por responderme... Los seteos del 'ADS' estaban bien, el problema surge con el Dbusearea() cuando quiero abrir la base con un alias distinto al nombre de la misma. Si la abro poniendo en el alias el mismo nombre de la base lo hace sin problemas!!! Dbusearea(.t.,,'Diario','Diario',.t.) anda bien si a continuacion hago Dbusearea(.t.,,'Diario','Diario2',.t.) no la puede abrir y da el error No estara el problema en el Dbusearea() ???? Salu2
ADS error en apertura de DBF con alias
Hola... Recuerdo haber tenido un problema similar,,, actualmente uso "USE" , solo para ADS IF cDriVer == "ADS" USE (cPatTab+cNomTab) ALIAS &cAliTab SHARED NEW VIA (cDriVer) INDEX (cPatTab+vIndTab[1]) ELSE DBUSEAREA(.T.,cDriVer,cPatTab+cNomTab,cAliTab,lShared,lReaOnl) ENDIF
ADS error en apertura de DBF con alias
Hola, ¿Qué versión usas?. Yo no tuve ese problema. Eso sí, no puedes usar un alias mayor de 8 0 10 caracteres con ADS.
ADS error en apertura de DBF con alias
Hola Puedes mostrar el numero de Error que da ?
ADS error en apertura de DBF con alias
Hola Estoy totalmente desorientado...ya probe de todo y no hay caso hago Dbusearea(.t.,,'Test',,.f.) luego Dbusearea(.t.,,'Test','Test2',.f.) NO DA NINGUN ERROR Cuando digo Dbselectarea('Test2') me tira ERROR 2001 WORKAREA NOT IN USE !!!!!! USO HARBOUR V.3.00.00 + ADS 9.1 + FWH 10.1 SALUDOS
ADS error en apertura de DBF con alias
Perdon En el mensaje anterior se me fue un eror de tipeo Las bases estan abiertas en forma COMPARTIDA .T. y no .F. como puse en el Dbuse area del ejemplo. Tampoco me esta funcionando con el driver 'DBFCDX' !!!!! Sera algun seteo ??????
ADS error en apertura de DBF con alias
REQUEST DBFCDX, DBFFPT //*** USE EL DRIVER... RDDSETDEFAULT() DBUSEAREA(.T.,RDDSETDEFAULT(),cPatTab+cNomTab,cAliTab,lShared,lReaOnl) russoft ltda
ADS error en apertura de DBF con alias
Hola Abriendo las bases con el driver 'DBFCDX' por default ANDA BIEN USANDO ALIAS Si las abro usando el driver 'ADS' con Dbusearea() es IMPOSIBLE ABRIR CON UN ALIAS Aparentemente el error se encuentra en el Dbusearea() de Harbour cuando se lo usa bajo 'ADS' Alguien sabra por que pasa esto? Si no encuentro solucion debere dejar de usar el Advantaje Data Server!
ADS error en apertura de DBF con alias
no se si podemos hacer una sesion por teamviewer para hacer pruebas, me puedes enviar la info por mail karlos.vargas at gmail dot com
ADS error en apertura de DBF con alias
Hola, En caso de que la DBF tenga un CDX asociado, probá renombrarlo. Ejemplo si tenés MITABLA.DBF y MITABLA.CDX Probá al CDX renombrarlo como MITABLA2.CDX y luego intentá abrir el archivo con DbUseArea(). Si funciona, posiblemente MITABLA.CDX fue creado con el alias, eso en la apertura del CDX generaría el error. Otra forma es probar SET AUTOPEN OFF para que no lo abra automáticamente. Son pruebas que yo haría... Saludos,
ADS error en apertura de DBF con alias
Eran los indices!!! Muchas gracias por la ayuda
ADS error en apertura de DBF con alias
Perfecto!! Me alegro que hayas dado con la solución. Saludos,
ADS for Harbour 3.2.0
Hi All, How to use ADS? Where I can find ADS library for Harbour 3.2.0 and BCC582 ? Regards, Julian
ADS for Harbour 3.2.0
Julian, In order to create ace32.lib for Borland, you have to do: c:\bcc582\bin\implib.exe ace32.lib ace32.dll
ADS for Harbour 3.2.0
Hi Antonio, Thanks, it's works. I need rddads.lib. Where i can find it? Regards, Julian
ADS for Harbour 3.2.0
Julian, I emailed it to you, please check it, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ADS for Harbour 3.2.0
Antonio, can send to me too?
ADS function list
Where can I find a list with ALL functions, parameters and returns of ACE32.LIB/DLL ?
ADS function list
Have a look here : <!-- m --><a class="postlink" href="http://help.sap.com/businessobject/product_guides/DQAce/en/800c0500_ace_lr_en.pdf">http://help.sap.com/businessobject/prod ... _lr_en.pdf</a><!-- m --> Best Regards Uwe : <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
ADS function list
UWE thx for reply BUT it is not what I want.... I want ADS function list, that is contained in ACE32.DLL OR ACE32.LIB if already converted. Sample: ADSEncryptTable(), ADSDecryptTable(), AdsEnableEncryption(), etc...
ADS function list
Dear Sambomb, I have sent a list of ADS Function to your email. regards, kok
ADS function list
Thx! I'll take a look and then I post here again... PS.: Can anyone do a test and send me a sample of how to correct? Encrypt a DBF Open the DBF with DBW or another Database manager, modify the value of a field. (PRODNAME From "&%!%¨@" to "TEST") Encrypt the DBF again, the modified value should be encrypted again, right? It happen, but ALL OTHER FIELDS IN ALL OTHER RECORDS lose the encryption!
ADS function list
Mr. Kok; Would you please also email the same list to me? Thank you, reinaldo dot crespo at gmail dot com. Reinaldo.
ADS function list
Forwarded
ADS function list
Sambomb; Got it. Thank you. Reinaldo.
ADS function list
Reinaldo, do you have ADS 9.x ?
ADS function list
I work with 8, 9, and 10. Reinaldo.
ADS function list
Can you do a test for me? 1- Encrypt a DBF 2- Check the DBF and look if all records are crypted. 3- Open the DBF with DBW.exe, DBU.exe or another DataBase viewer 4- Change the value of one field in a single rec 5- Encrypt the same DBF again 6- Check the DBF and look if all records are crypted. Litle sample of how to crypt the DBF [code=fw:290w7h3h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Public</span> pDir := <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>est<span style="color: #000000;">\"</span><br /><br />****************************************************************************<br />function OpenDbf(cFile, cIndex, lExclusive, cAlias, lEncrypt)<br />****************************************************************************<br />*<br />* &nbsp;Abrir arquivos em rede e mante-los criptografados<br />* &nbsp;Parametro: cFile, cIndex, lExclusive, cAlias, lEncrypt<br />* &nbsp;Retorno: Lógico - sucesso ao abrir<br />*<br />****************************************************************************<br /><br />local Result := .T., cChave := 'P'+'A'+'S'+'S'+'W'+'O'+'R'+'D'+'.'+'A'+'D'+'S'+'1'+'2'+'3'<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;default lExclusive := .F.<br />&nbsp; &nbsp;default lEncrypt &nbsp; := .T.<br />&nbsp; &nbsp;default cIndex := ''<br /><br />&nbsp; &nbsp;if ValType(cAlias) != "</span>C<span style="color: #ff0000;">"<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cFile &nbsp;:= AllTrim(Upper(cFile))<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; if Right(cFile,4) == "</span>.DBF<span style="color: #ff0000;">" .or. Right(cFile,4) == "</span>.ADS<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cAlias := Substr( cFile, 1, Len(cFile) -4 )<br />&nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cAlias := cFile<br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;select 0<br /><br />&nbsp; &nbsp;if lEncrypt<br />&nbsp; &nbsp; &nbsp; Try<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbUseArea(.T., "</span>ADS<span style="color: #ff0000;">" , pDir + cFile, cAlias, .not. lExclusive)<br />&nbsp; &nbsp; &nbsp; catch<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Return .F.<br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;else<br />&nbsp; &nbsp; &nbsp; Try<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbUseArea(.T.,"</span>DBFCDX<span style="color: #ff0000;">",pDir + cFile, cAlias, .not. lExclusive)<br />&nbsp; &nbsp; &nbsp; catch<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Return .F.<br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;if .not. empty(cIndex) .and. file(pDir + cIndex)<br />&nbsp; &nbsp; &nbsp; set index to (pDir + cIndex)<br />&nbsp; &nbsp; &nbsp; dbsetorder(1)<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;if lEncrypt<br />&nbsp; &nbsp; &nbsp; AdsEnableEncryption(cChave)<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;Result := .T.<br />&nbsp; &nbsp;<br />return Result<br /><br />/*------------------------------------------------------------------------*/<br />Function Test()<br /><br />&nbsp; &nbsp;If !OpenDbf("</span>C:\Test\MyDBF.DBF<span style="color: #ff0000;">", ,.T. , , .T.)<br />&nbsp; &nbsp; &nbsp; MsgInfo("</span>Erro ao abrir a tabela<span style="color: #ff0000;">")<br />&nbsp; &nbsp; &nbsp; Return .F.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;If ADSEncryptTable() != 0<br /><br />&nbsp; &nbsp; &nbsp; AdsShowError("</span>Erro ao criptografar a tabela<span style="color: #ff0000;">")<br /><br />&nbsp; &nbsp;else<br /><br />&nbsp; &nbsp; &nbsp; MsgInfo("</span>Tabela criptografada<span style="color: #ff0000;">")<br /><br />&nbsp; &nbsp;end<br /><br />Return nil<br /></span></div>[/code:290w7h3h]
ADS function list
I am also interested in ADS functions. Thank you very much. My email is <!-- e --><a href="mailto:ukservice.software@gmail.com">ukservice.software@gmail.com</a><!-- e --> Regards,
ADS function list
Gosh, I would love a copy also. <!-- e --><a href="mailto:Gale.Ford@wwrowland.com">Gale.Ford@wwrowland.com</a><!-- e --> Thanks
ADS function list
Forwarded.
ADS function list
Same for me ... but I'd like it for the Harbour compiler. Thanks. Tim "timstone@masterlinksoftware.com"
ADS function list
copy please <!-- e --><a href="mailto:hgoldstein@dslextreme.com">hgoldstein@dslextreme.com</a><!-- e -->
ADS function list
Please, please send me a copy too... <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> <!-- e --><a href="mailto:dr.microso@hotmail.com">dr.microso@hotmail.com</a><!-- e --> I am happy and thankful ...
ADS function list
Files uploaded! <!-- m --><a class="postlink" href="http://www.filesonic.com/file/1594046904/adsfunction.zip">http://www.filesonic.com/file/159404690 ... nction.zip</a><!-- m -->
ADS function list
I'm working with ADS , but I'm hard of encrypted tables with .adt extension. Someone uses table encryption in ADS and tell me how the process was conducted.
ADS function list
Hello Francisco; If these tables are Data Dictionary bound tables, as I suspect they are, then you only need to set the encryption password on the dictionary and then enable encryption for the table in question. Below is a short SQL script that enables encryption for all tables on a data dictionary: [code=fw:11pjds9m]<div class="fw" id="{CB}" style="font-family: monospace;"><br />DECLARE EncryptTables <span style="color: #0000ff;">CURSOR</span> as <br />              <span style="color: #0000ff;">SELECT</span> * <br />                <span style="color: #0000ff;">FROM</span> System.Tables <br />               <span style="color: #0000ff;">WHERE</span> table_encryption = <span style="color: #000000;">0</span>; <br />OPEN EncryptTables; <br /><br /><span style="color: #00C800;">WHILE</span> FETCH EncryptTables <span style="color: #00C800;">DO</span> <br />     EXECUTE PROCEDURE sp_ModifyTableProperty<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>EncryptTables<span style="color: #000000;">&#93;</span>.<span style="color: #000000;">&#91;</span><span style="color: #0000ff;">Name</span><span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">'TABLE_ENCRYPTION'</span>,<span style="color: #ff0000;">'TRUE'</span>,<span style="color: #ff0000;">'APPEND_FAIL'</span>,<span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>; <br />END <span style="color: #00C800;">WHILE</span>; <br /><br />CLOSE EncryptTables;<br /> </div>[/code:11pjds9m] Notice the script above uses an ADS Store Procedure. You could also use ADSEnableEncryption() + AdsEncryptTable() API functions, as in: [code=fw:11pjds9m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> AdsEnableEncryption<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EncryptionPassword"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> AdsEncryptTable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:11pjds9m] FYI - it is also possible to encrypt a single record on a table. I find it is definitely simpler if using ADS Data Dictionary. Hope that helps. Reinaldo.
ADS intenta conectarse al internet.
He estado usando ADS por varias semanas y recien ayer comence a recibir un mensaje de alerta de Parte de Norton Internet Security indicando que mi programa (esto sucede cada vez que compilo el programa) esta intentando conectarse con el internet.La direccion a la que intenta conectarse es: 224.0.1.55 : 2989OrgName: Internet Assigned Numbers Authority OrgID: IANAAddress: 4676 Admiralty Way, Suite 330City: Marina del ReyStateProv: CAPostalCode: 90292-6695Country: USTengo entendido que esto lo hace ADS cuando intenta abrir el database.Alguien sabe como evitar este intento de conexion parte de ADS?Saludos y gracias por su ayuda,George
ADS intenta conectarse al internet.
Hola, tendrás puesto el AdsSetServerType(3), teniendo en cuenta que://1 - Local Server//2 - Remote Server//3 - Local and Remote Server//4 - Internet Server//5 - Local and Internet Server//6 - Remote and Internet Server //7 - Local, Remote and Internet Server Entonces, tu Norton (a mi me pasa con el Zone Alarm) detecta que un nuevo programa está intentando acceder a Internet y te consulta si se lo permites.En mi caso con el ZA cada vez que compilo lo toma como un exe modificado y aunque le de permiso siempre me re-consulta.Solución, durante el desarrollo, lo pongo como local server, al sacar la version definitiva uso el remote o internet server.SaludosIván
ADS intenta conectarse al internet.
Ivan,Tienes toda la razon ahi estaba la solucion del problema al sustituir REMOTE AND LOCAL SERVER (3) por solamente LOCAL SERVER (1) no vuelve ya Norton con el alerta.El asunto, y lo que me confundio, es que despues de utilizarlo por varios meses sin problemas (El Remote & Local 3) hace solo unos dias que comenzo Norton a dar la alerta. Gracias por tu sugerencia.George
ADS intenta conectarse al internet.
George,para la paz de tu alma <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> IANA es la raiz de todos los DNS del mundo, seguramente ADS está tratando de resolver un nombre o algo así, suppongo que el nombre lo estará tratando de adivinar. Efectivamente, si no se especifica precisamente que tipo de servidor estas por usar, primero prueba con Internet, luego Servidor de Red y por ultimo servidor local.Un saludo,Carlos.
ADS local o Driver de Harbour
Amigos: Será posible que con ADS local un reindexado (borro y creo los CDX nuevamente), demore mas del doble que el RDD de Harbour? O estoy haciendo algo mal? Saludos y gracias. Ruben Fernandez
ADS local o Driver de Harbour
Si es posible, dependiendo de como estes definiendo tus llaves de los indices, recuerda que no puedes usar ni alias ni funciones definidas por el usuario, usualmente la generacion de indices via ADS es miles de veces mas rapida que con CDX.
ADS local o Driver de Harbour
Gracias Rene Saludos Ruben Fernandez
ADS local or remote
what is defferent ADS local from ADS remote how may to connect to ADS remote ?
ADS local or remote
Hi! local resides on your pc/laptop.. remote resides on your network ..server or pc connected to network (LAN or Internet) local is free. remote requires license. That is just my simple explanation.
ADS local or remote
Local mode works just like (x)Harbour's built in RDD 'DBFCDX' and is free. The remote option requires you to purchase a server product. The database files and the server product must reside on the same computer. With the remote option it creates a true client/server application.
ADS local or remote
The "remote" ADS is the only option that gives you true client-server (2-tier) paradigm, just like MS-SQL or MySQL or Oracle. With a 2-tier -client-server mode, database operations take place at the server-end, thus saving all data round trips from/to the server and the workstation. This yields A LOT FASTER database operations. Reinaldo.
ADS local vs dbfcdx
Hi All, What's benefit using ADS local with cdx index? Which better ADS local cdx vs dbfcdx? Regards, Julian
ADS local vs dbfcdx
dbfcdx works very well, so there is no reason to use ads locally, unless you have a plan to use ADS on a crowdy network in a near future, so you will increase the data integrity.
ADS no reconoce estas instrucciones AdsUseDictionary(.T.)
Estoy probando ADS con diccionario de datos y me da error en las funciones marcadas con * rddRegister( "ADS", 1 ) //RRG 3.5.2001 rddsetdefault( "ADS_CDX" ) //RRG 3.5.2001 SET FILETYPE TO ADT SET SERVER LOCAL AdsLocking(.T.) * AdsUseDictionary( .T. ) AdsRightsCheck( .F. ) * IF !AdsConnect60( "\FWH\PRUEADS\easysoft.add", 7, "adssys", "" ) MsgInfo( "Error.." ) Quit endif porfa si alguien me da una mano Ah. y que ventaja obtengo al utilizar ADS con .add Gracias Oscar
ADS not supports hb_WildMatch( '""+cWild+""' DbRecordInfo
Hello, I use in DBFCDX this way to filter for all fields: cWild := "*"+ "value to search A BUSCAR" +"*" cFiltro := "hb_WildMatch( '"+cWild+"', DbRecordInfo( 9 ) ) .OR. hb_WildMatch( '"+UPPER(cWild)+"', DbRecordInfo( 9 ) ) .or. hb_WildMatch( '"+lower(cWild)+"', DbRecordInfo( 9 ) ) " SET FILTER TO &cFiltro It runs very well. But ADS does not support it. I tried with no luck: cName := "LUCAS" cExpr1 := 'contains( *, "*'+UPPER( alltrim(cName) )+'*" ) ' AdsSetAOF( cExpr1 ) Any clue please?. Thank you very much.
ADS not supports hb_WildMatch( '""+cWild+""' DbRecordInfo
UP-.
ADS not supports hb_WildMatch( '""+cWild+""' DbRecordInfo
1. You could try using the like operator with ADS. 2. Contains works perfectly if you create an FTS index on the fields where the search is to happen. No need for wild cards. Contains already searches the whole field (great for memo fields). (cAlias)->( AdsSetAof( "contains( field, 'text' )" ) ) or cText := "Texto" (cAlias)->( AdsSetAof( "contains ( field,' " + ALLTRIM( cText ) + " ' ) " ) ) Notice the use of the single quotation marks and there is no blank spaces between the single and double quotation marks. This will work with or without an FTS index, but it is simply much faster with it. Reinaldo.
ADS not supports hb_WildMatch( '""+cWild+""' DbRecordInfo
Reinaldo, Thank you very much for helping me. Yes, I at news.advantage they told be the function Contains. In a single field works very good. But not for all fields. They told me to use * AdsSetAof( "contains( *, 'text' )" ) But does not filter anything. How do you create a FTS index for all fields of a DBF?. Thank you very much.
ADS not supports hb_WildMatch( '""+cWild+""' DbRecordInfo
up.-
ADS not supports hb_WildMatch( '""+cWild+""' DbRecordInfo
Lucas, depending on the ADS version, the search in all fields by using the asterisk * is combined with the AND operator, so the chance to find suitable data sets might be very low! For example, I'm using constructs like this [code=fw:2ex86o5o]<div class="fw" id="{CB}" style="font-family: monospace;">contains<span style="color: #000000;">&#40;</span> dbtrn->Name1, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Name2, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Name3, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Pst_str, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Ort, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Bmrkng,  <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Telefon, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span> OR contains<span style="color: #000000;">&#40;</span> dbtrn->Telefax, <span style="color: #ff0000;">"cPattern"</span> <span style="color: #000000;">&#41;</span></div>[/code:2ex86o5o] for searching in our address table. HTH
ADS or similar products
Hi, I'm looking for a product that permits to me modify a program written by me from the typical file/server to client/server architecture. I'm looking for a low cost solution. Client pc are connected to server through several vpn. Any advice? Best regards marco
ADS or similar products
[quote:2mxhksr0]I'm looking for a low cost solution.[/quote:2mxhksr0] How about MySQL as your database ? Regards Anser
ADS or similar products
Anser, please show me some links to read informations Many thanks marco
ADS or similar products
Marco: The solutions are ADS, tDolphing (MySql, de Daniel), Eagle1 (MySql,de Manu), and Apollo. Nobody speak about Apollo and I don't know why. <!-- m --><a class="postlink" href="http://www.vistasoftware.com/apollo_server.asp">http://www.vistasoftware.com/apollo_server.asp</a><!-- m --> Sorry for my bad English Regards Ruben Fernandez
ADS or similar products
Marco: Just my five cents, ADO as another one option. <!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/">http://sqlcmd.blogspot.com/</a><!-- m --> Regards
ADS or similar products
Hi Marco You can actually do client server with [x}Harbour code alone. It doesn't give you all the features you may get with an SQL based product but it is very fast and easy to understand. I did exactly that when faced with the exact same situation that you seem to be facing. I used IP sockets as my transport layer and arrays serialized using HB_Serialize() and HB_Deserialize() to wrap up query details and returned data and error codes. Some other nice features of this approach are: you can use existing tables unaltered if your code is OO you can directly update object properties it is a cross platform solution ( clients and servers can be run on any OS that supports [x}Harbour and its TIP library. This isn't the solution for everyone but if you are interested I can provide you with some working code. When I wrote this I took the opportunity to restructure how my queries worked (so that they are now basically parameterized objects) but that isn't necessary. If you have a relatively large number of clients you may need to implement threads - I may do that at some point inn the future - currently I effectively have a series of servers (on the one physical PC) listening on different ports and different clients use different ports (read form a local config file). It arguably isn't the prettiest way but it is very effective and reliable. Regards Doug PS I originally coded this in xHarbour but then switched to Harbour but it will work in either.
ADS or similar products
Doug: I'd like to see some working code if you don't mind. Thanks, Randal [quote="xProgrammer":krr3e9lr]Hi Marco You can actually do client server with [x}Harbour code alone. It doesn't give you all the features you may get with an SQL based product but it is very fast and easy to understand. I did exactly that when faced with the exact same situation that you seem to be facing. I used IP sockets as my transport layer and arrays serialized using HB_Serialize() and HB_Deserialize() to wrap up query details and returned data and error codes. Some other nice features of this approach are: you can use existing tables unaltered if your code is OO you can directly update object properties it is a cross platform solution ( clients and servers can be run on any OS that supports [x}Harbour and its TIP library. This isn't the solution for everyone but if you are interested I can provide you with some working code. When I wrote this I took the opportunity to restructure how my queries worked (so that they are now basically parameterized objects) but that isn't necessary. If you have a relatively large number of clients you may need to implement threads - I may do that at some point inn the future - currently I effectively have a series of servers (on the one physical PC) listening on different ports and different clients use different ports (read form a local config file). It arguably isn't the prettiest way but it is very effective and reliable. Regards Doug PS I originally coded this in xHarbour but then switched to Harbour but it will work in either.[/quote:krr3e9lr]
ADS or similar products
Thanks guys
ADS or similar products
Hi Randal, Marco Bear with me for a day or two and I'll post my solution. It's late at night and I have to get Mum out of hospital and settled back home tomorrow after her fall. Regards Doug