topic
stringlengths
1
63
text
stringlengths
1
577k
ADS Como crear libreria desde el CVS ACTUAL ? URGENTE!!
Necesito URGENTEMENTE.Yo no se que pasa, pero cuando ALGUIEN toca algo en el CVS de xHarbour, coñe, aqui me dejan de funcionar cosas que antes no tenia ningun problemaAhora resulta que el ADS no me funciona, no existe el fichero ace.h,dicho fichero me lo he descargado vete tu a saber de donde,y no es capaz de linkarme la aplicacion;¿ Alguien me puede echar una mano para compilar las librerias de la version 5.5 de ADS para xHarbour ?Mira que le paso el parametro ADS=5.Y ahora veo esto; ¿ set HB_DIR_ADS=C:\ads\acesdk ? Yo , simplemente estoy alucinado, la verdad, entre el ADS y el HBZLIB aqui vamos a terminar locos.Gracias, lo estoy intentando ANTES de postear este mensaje, PERO ES IMPOSIBLE, NO FUNCIONA!Aqui la rista de errores; C:\BCC55\BIN\ILINK32.EXE -aa -Gn -Tpe -I.\obj -j.\obj @make.tmpTurbo Incremental Link 5.00 Copyright (c) 1997, 2000 BorlandError: Unresolved external 'AdsGetFieldRaw' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|ads1Error: Unresolved external 'AdsGetLongLong' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|ads1Error: Unresolved external 'AdsVerifySQL' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsGetNumActiveLinks' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDAddTable' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDRemoveTable' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDRemoveIndexFile' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDAddUserToGroup' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDRemoveUserFromGroup' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDCreate' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDCreateUser' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDDeleteUser' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDGetDatabaseProperty' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDSetDatabaseProperty' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsConnect60' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsDDGetUserProperty' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsRestructureTable' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsCloseCachedTables' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsCreateFTSIndex' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|adsfuncError: Unresolved external 'AdsFlushFileBuffers' referenced from C:\XHARBOUR\LIB\RDDADS_5.LIB|ads1
ADS Como crear libreria desde el CVS ACTUAL ? URGENTE!!
Bueno, ya esta solucionado.Me parece INCREIBLE que la generacion de una simple libreria de ADS de una version 5.5 me halla llevado mas de una 1 hora localizar el mardito problema.Y todo porque a alguien le entro la gran idea de cambiar el que habia sidotoda la vida;ADS_REQUIRE_VERSION=5aADS_LIB_VERSION=500Genial, no tenemos ya que estar todo el dia cambiando el nombre de las librerias , que ahora nos dedicamos tambien a cambiar el nombre para las compilaciones condicionadas.Sinceramente, hay cosas que no entenderé nunca y esta, junto con la HBZLIB, es una de ellas..Miedo me da cada vez que tengo que modificar un proyecto ya finalizado a las nuevas versiones de [x]Harbour, porque simplemente, se que no funcionara.Ala, por si a alguien le pasa, aqui esta la respuesta.
ADS Como crear libreria desde el CVS ACTUAL ? URGENTE!!
Rafa,Te entiendo perfectamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> son ganas de cambiar cosas por que si y volver loca a la genteGracias por compartir con nosotros esa información <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ADS Como crear libreria desde el CVS ACTUAL ? URGENTE!!
[quote="Antonio Linares":31muv6gk]Rafa, Te entiendo perfectamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> son ganas de cambiar cosas por que si y volver loca a la gente Gracias por compartir con nosotros esa información <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:31muv6gk]Ya sabes por que te estaba llamando , no ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ADS Connections - Your experience is appreciated
This is not a trouble report for xHarbour ... but I know many ADS users are here and I would appreciate your input. I have gone direct to ADS on this but may not get a response for awhile. My application uses AdsSetServerType( 7 ) which will automatically determine if a connection to a Client Server is available, and then connect properly. Everything works fine on a local network. Now, here is the problem, and I'm hoping some of you with ADS experience will provide guidance. We are trying to bring up a client who has two sites connected via a Dedicated T line. According to them, the remote site computers appear to the server as if they were connected in the main building, and the two cisco routers make the connection essentially transparent. However, when those machines start our Client program, they show a "Local Server" connection, and are not seen by the Advantage Server. Should we be able to connect in this way ? Any thoughts on how we can get over this hurdle ? Thanks ... your input is always appreciated. Tim <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
ADS Connections - Your experience is appreciated
Hi, You might try to do SetServerType(ADS_REMOTE_SERVER), or AdsSetServerType(2), which will only connect to remote servers. If that fails, the broadcast packets are most probably getting lost. In that case, look at the ads.ini settings like our server over here. and configure your remote server to listen on a specific port in its configuration file. [drives] z:=\\qlinux\sys [qlinux] lan_ip=10.1.1.50 lan_port=2001 Alex
ADS Connections - Your experience is appreciated
Tim; You know; I like to change the properties to the directory where the data is located to the advantage user and group. In this manner you simply can not connect to the data unless you are in remote mode and using the xharb client software. Think about it, this means that no one can peek at the data nor **delete** a file unless connected. As far a security; what else can you ask for? AMOF, using explorer or dir command the files are not even listed. So, I'd first forget about allowing local connections when there is a remote server available. I control this via a .ini file where I declare the type of connection (XRDD=REMOTE or XRDD=LOCAL). On installations where ADS server is installed, I change the setting to REMOTE. Now on the problem you are repoerting, let me ask you, is your ADS server hosted on a Linux server running SAMBA? Reinaldo.
ADS Connections - Your experience is appreciated
Tim: I had the very same problem connecting the ADS via a VPN from two remote sites. First we went on line using AIS instead of ADS remote, the solution worked fine. Then our customer wanted to install a VPN and here is where the problem started. What we did (look into ADS knowledge base, under "VPN"), was: 1) Ping the remote server from the cliente computer 2) Created a DD in the host and set properties to the remote user to connect to the remote server VIA INTERNET 3) Set up the ADS.INI file, pointing the LAN_IP ADDRESS to the IP of the server (under the VPN) and set the port for remote access Then give a try, and let me know.
ADS Connections - Your experience is appreciated
I have limited abilities here because the hardware is controlled by a support company and the tech cannot follow the most basic instructions. In the past I have not needed an ads.ini file. The systems go up, and start working with no problems. I installed them here because Advantage suggested the requests were failing. My guess is because the server is overloaded, under fed ( low memory ), and being accessed by too much support software. I hate to modify my program for this one installation. I have the AdsSetServerType( 7 ) set so it can detect LOCAL, REMOTE, or Internet. If I put in a ADS_SERVER_TYPE=2 into the ads.ini, will it over ride the setting in the software ? Thanks Tim
ADS Driver
I am trying to access my database With the ADS Driver that I have used in the Pass. My Last version of Fivewin for Harbour was 2.3. Now I have upgraded to version 2.6 the September Build. But I can't find the ACE32.Lib in any of my Dir. I am trying to use the XHarbour Version of harbour to build my Apps. I have also looked that the regualer version of Habour to, but the file ACE32.lib is not included with ether Version. Can someone E-Mail me a Version of (ACE32.LIB) for Harbour and xHarbour Version 2.6. My Harbour Version is 45 My XHarbour Version is .99.51 Thank you Jim Bohanan <!-- e --><a href="mailto:jim37920@aol.com">jim37920@aol.com</a><!-- e -->
ADS Driver
Jim, You may create ace32.lib from your ace32.dll: implib.exe ace32.lib ace32.dll
ADS Driver
Bohan: You have to build your own ACE32.LIB, and is very easy to do: 1) Locate the ACE32.DLL of your current ADS version, you can find a copy of it in the ARC (Advantage Data Architech) directory, if you don`t have the ARC, install it from the ADS CD, because you are going to need two more DLLs from it in order to make your (x)Harbour app to work with ADS. 2) You are going to need: ACE32.DLL, AXWCS32.DLL, and if you are going to work in local mode, the ADSLOC32.DLL, so copy these DLLs into your (x)Harbour application directory. 3) You are going to need a tool called IMPLIB .EXE this tool is included with the Borland C++ and is in the \BIN directory, this tool converts a DLL into a LIB file that you can link directly into your application. 4) Follow Antonio's directions (from the previous message) to create the ACE32.LIB 5) Now you are almost ready to run 6) Download a Copy of RDDADS.LIB, you can find it in the contributions section of the (x)Harbour download page. 7) Link the RDDADS.LIB along with ACE32.LIB into your application and now you are ready (don't forget to have the ADS DLLs mentioned before in you app directory). <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> What are these DLLs for ???? ok here we go: AXWCS32.DLL is the ADS client for 32 bits applications, this DLL is needed in order to connect to the ADS Server. ACE32.DLL are the ADS Functions, The Advantage Client Engine DLL has all the functions that let you handle the server, why do you need the DLL if you already converted it into a LIB and linked into your app ?, Because not all the functions of the DLL are converted to LIB, and there are some visual components (error messages, for instance) that need the DLL in order to be displayed in the screen. ADSLOC32.DLL this is a "new" feature specially if you are comming from the ADS for Clipper, this is a "small" ADS Server that can be run in your local machine, this server has all the ADS features except Client/Server technology and transactions, but is fully operative, free, and can handle up to 5 concurrents users. So you don't need a remote server any more, with the ADSLOC32.DLL you can take home your personal ADS Server, do your test and then install the software to work on the real remote server.
ADS Encrypted File Indexing
I've been using ADS ( Remote and Local ) for many years, but generally without a Data Dictionary. First I set up the ADD and I have not problem accessing and indexing files. However, if I encrypt a file, I get an error. I use: oDB:createIndex( "erfcit", "city",,, .t., 10 ) Which is a call to: METHOD createIndex( cTag, cKey, lUnique, lAscending, lMeter, nInterval, cMessage, cFor, cFor2 ) DEFAULT lUnique := .f., ; lAscending := .f., ; lMeter := .t., ; nInterval := MAX( INT( ::reccount() / 10 ), 1 ), ; cMessage := "Building index..." + cTag + STR( ::reccount( ), 12 ) + " records" ( ::cAlias )->( ORDCONDSET( cFor, cFor2,,,, nInterval, ( ::cAlias )->( RECNO() ),,,, lAscending ) ) ( ::cAlias )->( ORDCREATE(, ( cTag ), cKey, { || &cKey }, ) ) RETURN nil and the error I receive is: Error description: Error ADSCDX/5089 The operation is not valid for the auto-open index. I've tried some alternatives with the same result. So if I want to use an ENCRYPTED file with ADS, using a data dictionary, how can I get the files to index ? The ONLY difference in this is if the file is encrypted. If not, the commands work perfectly. If it is, I get the error. Encryption is set using the ADS process, not called from within the program. Tim
ADS Encrypted File Indexing
Tim; With auto-open indexes you will need to remove them from the data dictionary before you create another index with the same name. The right thing to do is to re-index instead of creating the index all over again but if you must create an index with the same name as an existing instead of re-indexing, then remove the index from the dd before. Like this: [code=fw:a83qw7h8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />AdsDDRemoveIndexFile<span style="color: #000000;">&#40;</span> cfile, cIndexfileName, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:a83qw7h8] Look for AdsDDRemoveIndexFile() ACE function on the help files. It is very well documented. Reinaldo.
ADS Index Limitation
I have a database that requires 19 index keys. I am using TAG within two separate files. It works fine with CDX alone, however now I am trying to switch to ADS and I am getting errors while trying to build search keys. The error is related to maximum index keys. Is there any workaround to get 19 index keys to work with ADS?
ADS Index Limitation
ADS supports 50 tags in a CDX file.
ADS Index Limitation
Where can I find the documentation that supports your statement? Thank you,
ADS Index Limitation
From "Advantage Database Server A Developer's Guide" Version 8.1 book Authors Cary Jensen and Loy Anderson; we can read in chapter 3 page 85:[quote:24fabvf7] "An index file that has two or more index orders is referred to as a multiple-order index file, or compound index file. [b:24fabvf7]A given index file can contain up to 50 index orders[/b:24fabvf7]" ....... ....... "[b:24fabvf7]A given table can have up to 15 index files[/b:24fabvf7]"[/quote:24fabvf7]Regards,George
ADS Index Limitation
From "Advantage Database Server A Developer's Guide" Version 8.1 bookAuthors Cary Jensen and Loy Anderson:[quote:27q1q7gl] [b:27q1q7gl][u:27q1q7gl]ADT Table Parameters[/u:27q1q7gl][/b:27q1q7gl] A) Maximum field name length: 128 Characters B) Maximum table size: 4 gigabytes (16 exabytes using Windows NT/2000/XP/2003 NTFS or NetWare NSS file systems; 8 exabytes using Linux glibc 2.1.2 - 11+ with kernel 2.4+, 2 gigabytes with earlier Linux version). C) Maximum number of record per table: 2.2 billion D) Maximum record length: 64 kilobytes E) Maximum record filter expression length: 64 kilobytes F) Maximum index file size: 4 gigabytes (35 terabytes in Windows NT/2000/XP/2003 NTFS or NetWare NSS file systems or Linux; 2 gigabytes Linux pre-2.1.2 - 11 glibc and pre-2.4 kernel). G) Maximum memo file size: 4 gigabytes (4 terabytes in Windows NT/2000/XP/2003 NTFS or NetWare NSS file systems or Linux). H) Maximum single memo field size: 4 gigabytes I) Maximum number of fields per record: Depend on the average field name length. For example, if the average field name length is 10 characters, you can have 3,256 fields. If the average field name is 40 characters, you can have 1,302 fields per table [/quote:27q1q7gl]RegardsGeorge
ADS Index Limitation
Thank You George, however I am using DBFCDX and get the error below when trying to create an index fileADSCDX/5031 - The seek key is not the correct length
ADS Index Limitation
Maximum length of evaluated value of key expression is 240 bytes. Maximum length of key expression itself 512 bytes.When you move to ADS, please keep a few things in mind. Avoid Aliasing fields and your UDFs in the index expressions. Make sure your index expressions always evauluate to fixed length values and less than 240 bytes.
ADS Index Limitation
I am not using any UDF or alias fields, here is my code, can you tell me what I am doing wrong?INDEX ON file TAG S1 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON shipname TAG S2 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON reference TAG S3 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON consname TAG S4 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON placerec TAG S5 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON portload TAG S6 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON portdisc TAG S7 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON placedel TAG S8 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON scarrier TAG S9 TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON svessel+svoyage TAG SA TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )DBCLEARINDEX()INDEX ON manifest+hse TAG SB TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )DBCLEARINDEX()INDEX ON vslcode+hbill TAG SC TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )DBCLEARINDEX()INDEX ON DTOS(etd) TAG SD TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON hbill TAG SE TO &Pdd.ocnx01 EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()INDEX ON mbill+dststat TAG SF TO &Pdd.ocnx01b EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )DBCLEARINDEX()INDEX ON serial TAG SG TO &Pdd.ocnx01b EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )INDEX ON bookno TAG SH TO &Pdd.ocnx01b EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )DBCLEARINDEX()INDEX ON booking TAG SI TO &Pdd.ocnx01b EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )DBCLEARINDEX()INDEX ON addby+file TAG SJ TO &Pdd.ocnx01b EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) DESCENDINGDBCLEARINDEX()Thank You,
ADS Index Limitation
Please try creating TAG by TAG, While testing, just use "INDEX ON <exp> TAG <tagname>" and remove eval, and TO Check which TAG is failing
ADS Index problem solve
kokoo's problem: [quote:1r5449j1] I have a index problem which work in rdd "ADS". Aa SAMPLE ITEM NO."HST-2000 " SHOULD Sorting in first one , but the result is in last one. Same source code work in Rdd "DBFCDX" Was CORRECT . xHarbour :0.9970 ADS version: 8.1.018 #INCLUDE "FIVEWIN.CH" #INCLUDE "ADS.CH" local aDBF aDbf := {} AADD(aDbf, { "NO" , "C",20, 0 }) // DBCREATE(FILE_TH+TEMP , aDbf) USE &TEMP NEW EXCL ALIAS "ITEM" ITEM->(DBAPPEND()) ; ITEM->NO:="HST-2000 " //==> should be first ITEM->(DBAPPEND()) ; ITEM->NO:="HST-2000-01" ITEM->(DBAPPEND()) ; ITEM->NO:="HST-2000-02" ITEM->(DBAPPEND()) ; ITEM->NO:="HST-2000-03" ITEM->(DBAPPEND()) ; ITEM->NO:="HST-2000-04" INDEX ON ITEM->NO TO (FILE_TH+TEMP) BROWSE() // BROWSE SCREEN NO =================== HST-2000-01 HST-2000-02 HST-2000-03 HST-2000-04 HST-2000 ==> SHOULD BE FIRST, WHY ?[/quote:1r5449j1] the Solution from news.devzone.advantagedatabase.com <!-- m --><a class="postlink" href="news://46e75637@solutions.advantagedatabase.com/">news://46e75637@solutions.advantagedatabase.com/</a><!-- m --> [quote:1r5449j1] Hi, In some of the collations, the hyphen (-) character sorts in front of the space character. If you are using ANSI character sets, you can use the ansichr.exe utility to create a new collation based on your PC's locale. There is an option "Ignore Symbols" on the dialog where you specify the collation name. If you check that option, the resulting collation should have the hyphen collated after the space. If you are using Advantage Database Server, you will have to stamp the new collation into the server with the adsstamp.exe utility. If you are using Advantage Local Server, you specify the name of the language in the adslocal.cfg file (ANSI_CHAR_SET=...). You should reindex your tables after doing this. Mark Wilkins Advantage R&D [/quote:1r5449j1] kokoo say: [quote:1r5449j1] HI Mark : Thank you for solution . 1)After edit adslocal.cfg ===>ANSI_CHAR_SET=ASCII 2)copy ansi.chr to work directory 3)reindex It is the sorting what I want now !! [/quote:1r5449j1] Thanks everyone. Best Regards ------------------------------------------------------------- kokoo KAO
ADS Indices descendentes
Hola foro... Estoy probando el pasar de DBF-NTX nativo al entorno ADS, he logrado un ahorro de tiempo en la generación de los indices con ADS, pues tengo tablas con mas de 1,500,000 registros. ahora se me presenta el problema con los indices descendentes "DESCEND ( FR + DESPACHO ) + CAJA + CODEPT", en los procesos donde se aplica este tipo de indice... por ejemplo cuando se hace un seek. ¿Que limitacion tiene ADS con este tipo de indice? o como se puede reimplementar su uso... Gracias
ADS Indices descendentes
Yo uso indices de ese tipo y no he tenido problemas. [code=fw:258vcabi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> field->grupo+field->cliente+dtos<span style="color: #000000;">&#40;</span>field->fecha<span style="color: #000000;">&#41;</span> tag <span style="color: #000000;">8</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span> DESCENDING</div>[/code:258vcabi] saludos..
ADS Lo que no me ha quedado claro
Hola a todos!! La experiencia de pasarme a entorno gráfico y 32 bits con fivewin me ha sido fascinante, y los resultados ha sido muy buenos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . Creo que ahora, lo natural es incorporar a mis aplicaciones la seguridad de los datos de una tecnología cliente/servidor <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> , y naturalmente parece la opción mas sencilla y potente el uso de ADS. Todo buenísimo, salvo que de esta tecnología y de ADS se poco , y tengo algunas preguntas..... Sirvo a una empresa con 10 terminales todas en un simple grupo de trabajo con WINDOWS XP PRO en cada equipo. 1) Si deseo utilizar ADS REMOTE SERVER 8.0, tendré que instalar un software como Windows 2003 server o un server de linux, o es posible continuar con el grupo de trabajo que ya usan? 2) He visto que ADS es fabuloso, pero algo caro, por lo que me interesa saber... cuando se habla de 5 licencias que significa exactamente.. Esta empresa tiene 10 equipos, todos usan el mismo sistema (el mismo exe) pero difícilmente mas de 3 equipos ocurren a las mismas bases de datos simultáneamente (jamás más de 5). Puedo usar ADS con 5 licencias y no habrá problema o debo comprar 10 licencias por usar el mismo software en los 10 equipos? 3) El "Local Server de ADS", según entiendo NO ES CLIENTE/SERVIDOR <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> , pero permite desarrollar por lo que he leído la aplicación y dejarla lista para colgarla en un server ADS REMOTO. ¿Hay otras ventajas en usar este "Local Server"?, según entiendo con él podemos tener hasta 5 usuarios ocurriendo a la misma base de datos, pero... no estaremos a salvo de corrupciones, verdad? <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> 4)Recientemente se ha instalado un representante de este software en Uruguay, pero he visto que no saben nada de nada sobre FWH, quisiera saber si es posible comprarlo a alguien que me de soporte en esta área. (por este asunto pueden escribirme a mi e-mail <!-- e --><a href="mailto:jmurugosa@gmail.com">jmurugosa@gmail.com</a><!-- e -->), así podría sentirme más seguro, ya que el cliente correrá con todos los gastos de compra y naturalmente desea rápidos resultados. Gracias desde ya por sus respuestas. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
ADS Lo que no me ha quedado claro
Jose: [quote="jose_murugosa":13z8v332] 1) Si deseo utilizar ADS REMOTE SERVER 8.0, tendré que instalar un software como Windows 2003 server o un server de linux, o es posible continuar con el grupo de trabajo que ya usan? [/quote:13z8v332] Aunque el uso de ADS te sugiere que tengas un servidor dedicado, nosotros hemos hecho instalaciones de ADS sobre Windows XP Professional (muy importante que sea PROFESSIONAL), donde el servidor de datos a su vez es estación de trabajo, y en redes pequeñas hasta para 5 usuarios funciona estupendamente bien, para redes con mas de 5 usuarios, si es mas recomendable un equipo con hardware y software de servidor. [quote="jose_murugosa":13z8v332] 2) He visto que ADS es fabuloso, pero algo caro, por lo que me interesa saber... cuando se habla de 5 licencias que significa exactamente.. Esta empresa tiene 10 equipos, todos usan el mismo sistema (el mismo exe) pero difícilmente mas de 3 equipos ocurren a las mismas bases de datos simultáneamente (jamás más de 5). Puedo usar ADS con 5 licencias y no habrá problema o debo comprar 10 licencias por usar el mismo software en los 10 equipos? [/quote:13z8v332] 5 licencias significan USUARIOS CONCURRENTES es decir, estaciones de trabajo, que, sin importar el número de aplicaciones que hagan uso de las tablas en el servidor, están accediendo a los datos en ese momento. Por ejemplo, mencionas que te tienes 10 puestos pero que aunque los 10 usan tus programas NO LO HACEN AL MISMO TIEMPO, si este es el caso, una licencia de 5 usuarios te funciona perfectamente, la limitante es que un 6to usuario tendra que esperar a que se "libere" una licencia para poder utilizar el programa, de hecho tengo un caso precisamente en este momento de un cliente que tiene 5 licencias y 15 usuarios y todos usan el programa, los empleados tienen que "esperar turno" para poder usar el programa o tienen que pedirse "prestados" los usuarios es decir, esperar a que se desconente uno para que otro pueda acceder al servidor. [quote="jose_murugosa":13z8v332] 3) El "Local Server de ADS", según entiendo NO ES CLIENTE/SERVIDOR <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> , pero permite desarrollar por lo que he leído la aplicación y dejarla lista para colgarla en un server ADS REMOTO. ¿Hay otras ventajas en usar este "Local Server"?, según entiendo con él podemos tener hasta 5 usuarios ocurriendo a la misma base de datos, pero... no estaremos a salvo de corrupciones, verdad? <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> [/quote:13z8v332] Así es, con hasta 5 usuarios, el servidor local se comporta muy bien, pero careces de 4 cosas importantes contra el servidor remoto: 1) No es cliente servidor, lo que quiere decir que continuas sujeto a los errores típicos de las bases de datos DBFCDX 2) No tiene soporte a transacciones 3) No tienes protección por ocultamiento de las carpetas donde están los datos (aunque si tienes encriptación) 4) No tienes acceso via internet. El ADS Local Server no está pensado como un producto para aplicaciones comerciales para redes, aunque muchas empresas lo usan así, por eso es de distribución gratuita, el ADS Local Server tendría que considerarse mas bien como una herramienta para desarrollo y pruebas de software, que le permite al programador usar todas las características de ADS y probar su software en redes pequeñas o en monousuario, evitando con ello tener que estar "pegado" a un servidor que usualmente está metido en una oficina, digamos que el servidor local es un ADS "para llevar" en el portatil y poder programa en casa y probar todas las características del programa mismas que serán utilizadas en un servidor remoto el lunes siguiente. [quote="jose_murugosa":13z8v332] 4)Recientemente se ha instalado un representante de este software en Uruguay, pero he visto que no saben nada de nada sobre FWH, quisiera saber si es posible comprarlo a alguien que me de soporte en esta área. (por este asunto pueden escribirme a mi e-mail <!-- e --><a href="mailto:jmurugosa@gmail.com">jmurugosa@gmail.com</a><!-- e -->), así podría sentirme más seguro, ya que el cliente correrá con todos los gastos de compra y naturalmente desea rápidos resultados. [/quote:13z8v332] Desafortunadamente es una carencia que vas a encontrar en la mayoría de los distribuidores de ADS, nos salvamos algunos cuantos, porque la gente que vende ADS hace eso, vender y mover cajas de producto. No tiene ni idea para que sirve, no conoce las APIs del ADS, como se instala, se configura y se balance, mucho menos programa y menos todavía ha hecho alguna vez un programa cliente ADS, cualquier problema que tienen lo intentan solucionar con un "reinicia el servidor" o con un "vuelve a instalar el programa" cuando en realidad en el 90% de los casos las soluciones son bastante simples y usualmente son de programación, y para muestra preguntales por ejemplo si saben como se instala el VCL de Delphi, o vamonos a algo mas simple, que puerto se tiene que asignar para la red de area local. Si lo deseas nostros podemos hacerte "todo el paquete", vendemos en cualquier parte del América, tenemos un excelente precio en comparación con la mayoría de los distribuidores y adicionalmente todos nuestros clientes que compran ADS con nosotros, se llevan la documentación en Español ESPECIFICA para su lenguaje de programación, obviamente tenemos la documentación para el uso optimo de ADS con xHarbour, tenemos documentado el RDDADS completo, la de instalación y puesta a punto del servidor, y la guia de programación.
ADS Local Server
Hi Everybody, I am trying to add in the ADS Local Service to my app and I get the followinf error: Error: Unresolved external 'AdsCloseCachedTables' referenced from C:\XHARBOUR\LIB\RDDADS.LIB|adsfunc I think I have everything setup... RddADS.lib and Ace32.lib (from the xharbour\lib directory) are linked in. Ace32.dll, AdsLoc32.dll and Axcws32.dll are in the same directory as my exe At the start of my app I have: Request ADS RddSetDefault(ADS) AdsSetServerType(7) AdsSetFileType(1) Any Ideas?
ADS Local Server
You have to link with the correct version of ace32.lib
ADS Local Server
I tried generating the ACE32.LIB file using: lib /def:ace32.def /out:ace32.lib But I get this error: LIB : fatal error U1151: syntax error : illegal file specification I have also tried with removing the .dll ext from within the .def file
ADS Local Server
Jeff, Try this: implib.exe ace32.lib ace32.dll
ADS Local Server
Thanks Antonio.
ADS Local and Index
Hi All, After a lot of trial and error, web searches and head banging I found that when using ADS Local, Indexes are not done the same as standard xHarbour indexes. With xHarbour, an index can be done as follows: [code=fw:1xukkj9f]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Test->Field1 <span style="color: #0000ff;">TO</span> C:\Test <span style="color: #00C800;">FOR</span> Test->Field2 = cSomeString</div>[/code:1xukkj9f] With ADS Local, you cannot use cSomeString. I found this on the ADS website: [quote:1xukkj9f]Memory variables do not work in expressions sent to the Advantage Database Server. This is applicable with filter or index expressions. The expression that is used for filtering or indexing must have all macros expanded prior to sending the expression text to the server[/quote:1xukkj9f] They give an example of how to get around this: [quote:1xukkj9f]Solution: Use the & symbol to expand macro values. Below is a simple console application that demonstrates how to macro expand date variables in CA Visual Objects when used in a filter expression: ---------------- FUNCTION MemFilter() LOCAL dbs AS DbServer FIELD empid, first, last, hiredate STATIC dDate AS DATE // won't macro-expand MEMVAR cDate AS STRING // will macro-expand dbs := DBServer{"\\ufo\recreate\dirke\VO2\scopes\master",DBSHARED,,"AXDBFCDX"} dDate := CToD('10/01/98') cDate := DToC(dDate) ? "SetFilter: " [color=#FF0000:1xukkj9f][b:1xukkj9f]? dbs:SetFilter(StrEvaluate('HIREDATE = CTOD("&cDate")')) <<<<<Here is their work around [/b:1xukkj9f][/color:1xukkj9f] WAIT dbs:GoTop() ? "Filtered view: " DO WHILE !(dbs:EOF) ? dbs:first,dbs:last,dbs:empid, dbs:hiredate dbs:Skip() ENDDO wait[/quote:1xukkj9f] If I try replacing cSomeText with "&cSomeText" it still does not work. Dose anyone know how to make this work? I need to use ADS Local as I am using their table encryption.
ADS Local and Index
Maybe &("{ || " + HIREDATE = CTOD(cDate) + "}") Cheers, Antonio Ferreira
ADS Local and Index
Hi Antonio ... Thanks for the try but still is does not work <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
ADS Local and Index
Using tData objects: oDB := tdata():new(, "euntli",, .f. ) IF oDB:use() oDB:createIndex( "euntli", "UPPER(year)+UPPER(make)+UPPER(model)+UPPER(submodel)",,, .t., 10 ) ENDIF oDB:close() tData is an extension of tDatabase, provided by James Bott. It will make your life a whole lot simpler if you use it. This works perfectly with DBFCDX, and ADS ( local and remote ) Tim
ADS Local and Index
Jeff, [quote="Jeff Barnes":1lk2l2lx][code=fw:1lk2l2lx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Test->Field1 <span style="color: #0000ff;">TO</span> C:\Test <span style="color: #00C800;">FOR</span> Test->Field2 = cSomeString</div>[/code:1lk2l2lx][/quote:1lk2l2lx] Try this: [code=fw:1lk2l2lx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Test->Field1 <span style="color: #0000ff;">TO</span> C:\Test <span style="color: #00C800;">FOR</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span>Test->Field2 = <span style="color: #ff0000;">'] + cSomeString + ['</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span></div>[/code:1lk2l2lx] EMG
ADS Local and Index
Hi Enrico, Sadly, it did not work. I get an ADSNTX/3211 error <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
ADS Local and Index
Jeff, [quote="Jeff Barnes":3qeog2y2]Hi Enrico, Sadly, it did not work. I get an ADSNTX/3211 error <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->[/quote:3qeog2y2] What is in cSomeString? EMG
ADS Local and Index
Jeff, Try leaving out the aliases. These are variables too. As I mentioned in another thread using aliases creates problems, especially if you want to open multiple copies of a database (and there are very good reasons to do so). Try: INDEX ON Field1 TO C:\Test FOR Field2 = &(cSomeString) James
ADS Local and Index
Hi James, Even without the alias it still fails <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
ADS Local and Index
I use ADS but not in Local mode. I took one of my index on commands and looked at to .ppo to see how it is structured. Here is the actual code: index on ld_num+mv_no tag ( [statactive] ) additive to ( ::cCurDir+cData ) for mv_status < 'F' Here is the ppo code: The "For" condition is set first. ordCondSet( 'mv_status < "F"', {|| mv_status < "F"},,,,, RECNO(),,,,,, .T.,,,,,,, ) then the actual indexing is started ordCreate( ( ::cCurDir+cData ), ( "statactive" ), "ld_num+mv_no", {|| ld_num+mv_no},,, ,{} )
ADS Local and Index
hello try cFor = 'test->field2 = "' alltrim( cSomeString ) + '"' INDEX ON Test->Field1 TO C:\Test FOR &( cFor ) saludos
ADS Local and Index
Hi Wilson, That works <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Thank you.
ADS Local and Index
Jeff, [quote="Jeff Barnes":32kgpofg]Hi Wilson, That works <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Thank you.[/quote:32kgpofg] So the problem was inside cSomeString, as I suspected. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
ADS Local server for Clipper apps?
Hi. Does anybody know if the ADS local server is also available to fw+clipper 5.3 apps? Thank you, Reinaldo Crespo-Bazán
ADS Local server for Clipper apps?
Reinaldo: Nop, Local server along with ADT table formats, and all the ADS SQL stuff are only available for 32 bits applications.
ADS Local server for Clipper apps?
Rene; Thanks for your reply. BTW -- I've been using the local server for testing of my xharbour apps. I plan to place an order for the 50 user lic for one of my customers today. I have a couple of other questions related to AIS: 1. I like to use a lot of browses, I suppose that browsing of very large dbfs, would be very slow. 2. I like to use incremental searches on browses. How would that affect the speed when connected via the AIS? What alternatives do you suggest to these two problems? Best, Reinaldo
ADS Local server for Clipper apps?
[quote="reinaldocrespo":2y5pgm9r] 1. I like to use a lot of browses, I suppose that browsing of very large dbfs, would be very slow. [/quote:2y5pgm9r] No Way !!!!, I have a program that actually browses 24 databases AT THE SAME TIME, database size are abot 200,000 records and they are pretty damn fast. The secret is to open ALL THE FILES you are going to need at the begining of the application, and let all the files opened until you close the app. ADS only deploys the exactly amount of record images you need. For example if your browse only shows 20 lines, ADS wil provide you 20 lines of data, no matter that you dbf has millions of records and you will recieve the data needed as you move over the file. If you wish to "read ahead" data, in order to have it ready when you perform a page-up/page-down action, you can use ADSCacheRecords() function to indicate how many records does ADS have to read in advance. [quote="reinaldocrespo":2y5pgm9r] 2. I like to use incremental searches on browses. How would that affect the speed when connected via the AIS? [/quote:2y5pgm9r] He he he, Incremental searches are solved by the server itself, so you don't have to worry about speed, all the searches no matter if the server is local, remote or internet are solved at leats ten times faster than the way (x)Harbour does with the RDD, you may experiment some delay specially in the Internet server if you have to do too many jumps to reach the server you want, my best advice in these cases is to use a VPN, having a VPN you will have a speed similar to you LAN.
ADS Local server for Clipper apps?
Pues bien! Todo resuelto ( o listo el pollo como diría Vikthor). Te daré noticias cuando tenga todo listo. Recibe un saludo, Reinaldo.
ADS Local sobre Termina Server
Tenemos una aplicación hecha con FWxH y ADS Local la cual no correosobre terminal server nos manda el error de :5185 Servidor local esta restringido para este ambiente......saben algo al respecto ?hay alguna solución ? Saludos a todos y gracias de antemano.Joel AndujoPD Después de algún tiempo de andar con otras cosillas, regreso y veo bastantes novedades, me da mucho gusto.
ADS Management Functions
Hello Everyone, Does anyone sample code on ADS management? I am looking for a couple specific examples. 1. If a record is locked by specific user, I would like to provide a message to user informing them of the user name that has locked the record. 2. If a DBF needs to be opened exclusively, however the DBF is opened by other users, I would like to get a list of users that are using the DBF I would appreciate everyone's assistance. Thank you,
ADS Management Functions
Darrell, I'm sure you will find some discussions of these topics if you do a search of this forum. An alternate answer to question 1 is to use opitmistic locking. Using this a record will never be locked for more than a split second, so you won't need to know who locked it. An alternate answer to question 2 is to reuse deleted records instead of removing them by PACKing the file. This would lessen the need to get EXCLUSIVE USE. Regards, James
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Dear All, Can someone help me? I'm trying to convert all my program to ADS. how to use function encrypt and decrypt from fivewin for indexing in ADS. [code=fw:a71je4ol]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Directry.ch"</span><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"ORD.CH"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ads.ch"</span><br /><br />extern dbfcdx<br />REQUEST     ADS             ,;<br />            ADSKeyno        ,;<br />            ADSKeycount     ,;<br />            AdsGetRelKeyPos ,;<br />            AdsSetRelKeyPos <br />           <br />            <br /><span style="color: #00C800;">static</span> oWnd<br /><br />*-- <span style="color: #00C800;">FUNCTION</span> -----------------------------------------------------------------<br />* <span style="color: #0000ff;">Name</span>........: <span style="color: #000000;">Main</span><br />* Description.:<br /><span style="color: #000000;">*</span> Parameters..:<br /><span style="color: #000000;">*</span> <span style="color: #00C800;">Return</span> value: <span style="color: #00C800;">nil</span><br />* Author......: <br /><span style="color: #000000;">*</span>-----------------------------------------------------------------------------<br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <br />       SET<span style="color: #000000;">&#40;</span>_SET_OPTIMIZE,.T.<span style="color: #000000;">&#41;</span> <br />       request DBFCDX<br />       <span style="color: #B900B9;">//-----setting ads</span><br />       Rddsetdefault<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ADS"</span><span style="color: #000000;">&#41;</span><br />       ADSSETSERVERTYPE<span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><br />       ADSSETFILETYPE<span style="color: #000000;">&#40;</span>ADS_CDX <span style="color: #000000;">&#41;</span> <br />       AdsSetDateFormat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DD/MM/YYYY"</span><span style="color: #000000;">&#41;</span><br />       AdsSetEpoch<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/01/2000"</span><span style="color: #000000;">&#41;</span><br />       ADSRightsCheck<span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />       ADSLocking<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />        <br />    <br />      use customer <span style="color: #00C800;">new</span> via <span style="color: #ff0000;">'ADS'</span><br />      <span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> ENCRYPT<span style="color: #000000;">&#40;</span>first,<span style="color: #ff0000;">'TEST'</span><span style="color: #000000;">&#41;</span>  tag FI <span style="color: #0000ff;">TO</span> CUSTOMER<br />      BROWSE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> </div>[/code:a71je4ol] thanks kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hi Kok, You mean it... [code=fw:1olpn2p5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cAlias := GiveAlias <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span><br />USE <span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span> VIA <span style="color: #ff0000;">"ADS"</span><br />AdsEnableEncryption<span style="color: #000000;">&#40;</span> cWord <span style="color: #000000;">&#41;</span><br />cAlias := <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !File <span style="color: #000000;">&#40;</span> cCDX <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>FLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->UNIT_NO &nbsp; TAG UnitMsf1 <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span> cCDX <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">FOR</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->UNIT_CNM &nbsp;TAG UnitMsf2 <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span> cCDX <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">FOR</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->UNIT_DES &nbsp;TAG UnitMsf3 <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span> cCDX <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">FOR</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->UNIT_ENM &nbsp;TAG UnitMsf4 <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span> cCDX <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">FOR</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbUnLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span> cCDX <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; SET ORDER <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"UnitMsf1"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1olpn2p5]
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hi Richard , Thank for your reply, but I don't want use function from ADS , I must use function encrypt from fivewin. regards, kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hola, I don´t know why you want to use encrypt function from FW, but if you really need it, I think you can create a extra field with encrypted data and create the index over this field regards Marcelo
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hi Marcelo, All my new programs, I use function from ADS. I need encrypt from fivewin for my old program that use this function for indexing. Regards, Kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hi No esta permitido usar funciones de usuario en los indices No this allowed using user's shows in index them
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hi Patricio, But it works perfectly without ADS. Regards Kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
kok, because ADS RDD is related to ADS Server, you can't use other function not implemented in ADS, please read the ADS documentation, and you will see the allowed function list allowed. The other way is how I mentioned previously, adding a field with the crypted data regards Marcelo
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hi Marcelo, Thank you for your reply. If I write like this : use customer new via 'DBFCDX' index on ENCRYPT(first,'TEST') tag FI TO CUSTOMER everything work fine in ADS . yes, I Agree with you, It's about ADSCDX I think need Antonio help to join this function Encrypt and decrypt Regards, Kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Kok, AFAIK ADS provides its own encryption functions, so you should use theirs I am not used to them, but surely another ADS user may help on this
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
In a 2-tier (true client-server) application, data is managed by the server. Index operations are performed on the server end. Without ADS, (that's when the server is only used as a shared drive) each record travels from the shared drive on the server to the workstation where decisions and operations are done before they are sent back to the server for a disk-write. With ADS data no longer travels to the workstation to then comeback to the server. Everything happens on the server end. That's one of the reasons ADS RDD is so much faster. The server take the index command from the client and "knows" what to do without sending each record to be "analyzed" by the client. The problem with your encrypt function is that it "lives" on the the client workstation while the server "knows" nothing about it. For this reason your user defined function on the workstation used to crete the index, is invalid on the server. Most regular clipper functions already exists on the ADS server (trim, left, right, ...), you can read the help file to see the list. FiveWin's encrypt and decrypt are not in the list as they are not even valid clipper functions. As you guessed, you may continue to use DBFCDX RDD for certain tables, but you now loose all the benefits of a true client-server paradigm. Hope that helps, Reinaldo.
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Dear Reinaldocrespo, Thank you for the explanation. I like client server from ADS, very fast. yes,I do not have any option to use a power from ADS for my old program, except I change the structure of indexing. Regards, Kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
BTW - since we are on this subject, I might as well add some more information. In a client-server paradigm (like any SQL including ADS SQL), index or table corruption is very unlikely. The reason tables and indexes get corrupted is because something happens that breaks or interrupts the communication between the shared drived and the workstation. When this happes, for whatever reason including network failures, and data was either being read or written to the shared drive, corruption occurs. In a 2-tier paradigm, this doesn't happen since read and writes are all managed by the server regardless of the workstation status. Back when ADS was young, it was advertised as a tool to avoid corruption. The original developers didn't intend to write an SQL. All they did was mostly re-write the communications layer so that all Clipper dbf operation would be carried out by the server. These were Clipper and c programmers writing mobile code. Their .dbfs and ntxs used get corrupted all the time, so they decided to do something about it. That's how ADS was born. An SQL company called iAnywhere got interested on their mobile code and patents and decided to buy them. The unintended consequence is that they also got ADS SQL. Then Sybase got interested on the mobile technology that was acquired by iAnywhere and thus, decided to buy them out. The unintended consequence is that they now also acquired two SQLs (iAnywhere and ADS). Sybase already owned ASE (adaptive server which is the parent of MS-SQL server) as well as AI. So now Sybase owned 4 SQLs. Recently SAP got interested on all this mobility technology and patents, and ended up purchasing Sybase for 8 billion dollars. So now, ADS belongs to SAP. In essence, with ADS there is more SQL know-how and expertise than at any other company. Now days ADS is much more than just a means to avoid corruption. Now you get everything other "bigger" and more expensive SQLs have while also keeping the original clipper like syntax. The demands of more modern and complex ways to manage data, forces us each day to migrate more and more towards SQL and multi-tier paradigms. ADS -with its clipper like ISAM RDD -just makes it a little easier to get started. But once you have migrated to ADS REMOTE server, you need to start taking it a step further and learn SQL, triggers, Referential Integrity rules, Web Services + Mobile data access, data dictionary. It takes time. The good news is that you get to keep working with .dbf/fpt/cdx and .adt/adm/adi. Reinaldo.
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Dear Reinaldo, Thank you for this useful information. Did you use ADS 11? I wanna know about web-paltform from ADS 11. Regards, Kok
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Reinaldo, kok joek hoa: Very precise explanation of the client / server paradigm. On encryption, commercial xHarbour supports a driver called SIX, which allows transparent record encryption. I'd used since the old Clipper 5.2e / DOS days and now with xHarbour without any trouble at all. There's another way to get the speed benefits of client / server: Remote Desktop Connection. You connect via remote and everything happens at the host / server level. No need for data records to travel through the network back and forth. There are a couple of patches on the Web for Windows XP Professional, Vista & 7 that allows you to connect remotely, without disconnecting the user on the host / server. The patch also supports lots of users simultaneously. I've used on a 15 node network and works smoothly. Also, this way, you got only a single point of failure, as in client / server, the server.
ADS NOT SUPPORT DECRYPT AND ENCRYPT FROM FIVEWIN
Hunter; How does it work with say; 50 or 100 users? I think that remote desktop represents a great solution as long as you keep app restricted to few concurrent users. Furthermore, remote desktop does not add a web-clients such as a PHP client, Java client, web services, etc... Neither will it give you triggers, referential integrity rules, and extended field types. Again, as long as you keep your app restricted to older technologies and a few number of concurrent users, your should be fine with a remote desktop. Reinaldo.
ADS ROLLBACK
Hola!! Tengo dos preguntas si alguien me las puede responder Como funciona AdsRollBack() He estado probando que el sistema cree un error y en el errorsys ejecuto la funcion AdsRollBack(), pero igual los datos quedan en las bases, hay algun metodo como hacerlo funcionar otra cosa, en los campos memos no se pueden grabar arreglos, hay que colocar alguna libreria adicional? Saludos Patricio
ADS ROLLBACK
Patricio: LAs transacciones con ADS solo funcionan cuando trabajas con el servidor remoto y con el servidor internet, con el servdiro local las instrucciones estan soportadas por compatibilidad pero no hacen nada. ADSRollback() solo funciona si es llamado entre la llamada a un ADSBeginTransaction() y un ADSCommitTransaction() Ejemplo: ADSBeginTransaction() SELECT x REPLACE .... REPLACE .... TRY ..... CATCH ..... ADSRollBack() SELECT Y REPLACE REPLACE ADSCommitTransaction(). En general no necesitas llamar manualmente a ADSRollback(), porque si ADS detecta un ADSBeginTransaction() abierto, y no detecta un ADSCommitTransaction(), porque el programa haya fallado, se haya ejecutado una insturccion invalida o se haya perdido la conexion con el servidor, el Rollback() se hace de manera automatica.
ADS Rdd problems
I've just finished converting a big application to xharbour and it runs wihtout any errors with rmdbfcdx rdd. I'v tried first with ADs rdd local server (the code is the same) but I've given up because I had all kind of problems : Index keys repetition Index corruption Functions that work diferently etc. The exact same code with rmdbfcdx or dbfcdx it runs ok. Does anyone had such experience? Antonio
ADS Rdd problems
I, and many other people, use ADS both with Local Server and Client Server. I do not believe there are any known bugs at this time, at least for most operations. Please make sure you look at the documentation and have setup the configuration for ADS properly. It should be relatively flawless. Tim
ADS Rdd problems
I 've check and recheck everything, adslocal config file, collation, etc. I've contacted ads suport, nothing ! I can't find out a reason for these problems. I know however that when I lock the records in one function and I replace them in another index entries are repteated. The fields being replaced are not index keys!! Do you have any tricks or tips to help find out what might be the problem? It seems to me that by the evolution of the sqlrdd that this will be the future for xharbour developers. What do you think ? Antonio
ADS Rdd problems
I'm satisfied with ADS and with its performance for clients with multiple workstations. I'd rather not go to SQL personally. My reason is strictly support ... its so nice to be able to fix a single DBF and have my client up and running quickly. I've done nothing unusual in the implementation. Look at the documentation for the setup guidelines / sample and be sure you have the lib files included. Tim
ADS Rdd problems
Ok. But the problems I have are related to ADS local server. I didn't tryed remote server. Antonio
ADS Rdd problems
Please check the extended reply I made on the xHarbour message board where you posted the same question. Then, please respond after making sure you have the proper elements included.
ADS Re-connection
Hello All,I have this situation Using xHarbour 1.0b and ADS 8.1:I successfully connected using AdsConnect60(....), something happend with my ADSL internet connection and my communication has been cutoff...ADS generated '[6313] General communication failure' with that matter.Now, connection resumed (somehow), inside my program, calls again the procedure to reconnect with the same parameter to AdsConnect60().... IT WONT CONNECT ANYMORE.what I am trying to do is have auto reconnect with ads if the internet connection fails and resume again without the user restarting the program.any help ADS expert....regards,
ADS Re-connection
I solved the issue on reconnection by adding the following to ADS.INI <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> [Settings] RETRY_ADS_CONNECTS = 1 hope this helps others too.Regards,
ADS Re-connection
Thanks for the tips. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ADS Referential Integrity ADSGetLastError
Hello, 1) I am trying to work with RI, yes this work, when you want to delete some row from table which is defined with some RI, the row is not deleted but some thing occur with the table, it is not accessible in normal way, we need to reopen the table. Have some body any experience about RI in ADS?. 2) Working with SQL in ADS I get a 5018 AE_INVALID_HANDLE error with ADSGetLasrError after execute a SQL sentence, I use [code=fw:37h7n5pt]<div class="fw" id="{CB}" style="font-family: monospace;">   <br />            CONNECT60<span style="color: #000000;">&#40;</span>......@hads<span style="color: #000000;">&#41;</span><br />            .....<br />            ADSCreateSQLStatement<span style="color: #000000;">&#40;</span> cAlias, <span style="color: #000000;">3</span>, hads <span style="color: #000000;">&#41;</span><br />            ADSPREPARESQL<span style="color: #000000;">&#40;</span> consulta <span style="color: #000000;">&#41;</span><br />            ADSEXECUTESQL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:37h7n5pt] to execute SQL sentences, the result is correct but I get this error notification, some idea? I am using ADS 7.1, last official xHarbour compiled to work with ADS 7.1, BCC regards Marcelo
ADS Registro bloqueados
Estimados Como saber en Ads que registros estan bloquedos? desde ya muchas gracias..
ADS Registro bloqueados
Patricio; Hola, ¿que tal? Si estas usando el bloque propio de ADS (proprietay locking), entonces podrias usar la funcion: AdsGetAllLocks() Búscala en el help file y verás como funciona. Saludos, Reinaldo.
ADS Registro bloqueados
Gracias reinaldo es gusto lo que necesito, pero al tratar de usar la funcion me dice que no existe tal función [code:2sifmduw]Compiling&#46;&#46;&#46; &#9792;MAKE Version 5&#46;2 Copyright &#40;c&#41; 1987, 2000 Borland c&#58;\borland\bcc55\bin\ilink32 -Gn -aa -Tpe -s @b32&#46;bc Turbo Incremental Link 5&#46;00 Copyright &#40;c&#41; 1997, 2000 Borland Error&#58; Unresolved external '_HB_FUN_ADSGETALLLOCKS' referenced from D&#58;\APL\PRGS\ CARMONA\OBJ\SALIDAS&#46;OBJ [/code:2sifmduw] estará desarrollada para xharbour [code:2sifmduw]xHarbour Compiler build 1&#46;1&#46;0 &#40;SimpLex&#41; Copyright 1999-2008, http&#58;//www&#46;xharbour&#46;org http&#58;//www&#46;harbour-project&#46;org/[/code:2sifmduw] y si alguien ya implento estas .. [code:2sifmduw] AdsGetNumLocks&#40;&#41; AdsLockRecord&#40;&#41; AdsGetAllLocks&#40;&#41; [/code:2sifmduw] Si alguien hizo el Wrapper, se lo agradecería
ADS Remoto
Mario Esto te puede servir [url:3icgk4uc]http&#58;//blog&#46;advantageevangelist&#46;com/2008/07/configuring-windows-firewall-for&#46;html[/url:3icgk4uc]
ADS Remoto
Muchas gracias! Saludos
ADS Remoto
Estimados: Tengo una PC funcionando como Servidor semi dedicado, con Windows 7. Desde allí ejecuto ADS como Servidor. Al iniciar desde otra PC (con XP o 7) la aplicación me da el siguiente error: 6420 Unable to "discover" the Advantage Database Server. En otro grupo de PCs, todas con Windows XP, y el mismo escenario, las PC se conectan sin error. Windows 7 requiere de alguna configuración extra? El ADS es la vers. 9.10 gracias
ADS Remoto
Es necesario configurar una excepción en el firewall de Windows del equipo Servidor para que permita la comunicación con ADS. El archivo que necesitas agregar es [b:uybuvgor]ads.exe[/b:uybuvgor] que se encuentra en c:\Program Files\Extended Systems\Carpeta de ADS9. Edmundo.
ADS Remoto
Gracias Patricio Aunque, en este momento no tengo PC para corroborarlo, pero me parece que ese es el caso de windows XP. Para W7 es como dice Edmundo No obstante bienvenido el articulo Saludos
ADS Remoto
Me rectifico; Edmundo: al parecer solo con eso no basta. Ya que sigo sin poder conectarme Patricio: Lei mas detenidamente, pero no puedo llegar a este paso: To get to the firewall exceptions tab you need to view the network connection properties and then the properties of the connection you wish to configure. From there open the advanced tab and click on settings under the Windows Firewall section. Uso W7 Ultimate
ADS Remoto
Intenta lo siguiente: 1. Reinicia el servidor. 2. Verifica que los equipos de la red tengan asignada una IP estática. 3. Intenta conectarte usando el Advantage Data Architect (ARC). En general me ha funcionado unicamente usando la excepción, lo he probado con exito en Win XP/7Pro/2008/2008 R2. El Win7 Ultimate nunca lo he usado como servidor, ignoro si tenga alguna característica adicional que este afectando la comunicación. Edmundo.
ADS Remoto
A veces para descifrar este tipo de problemas yo intento usar telnet al ip y puerto. Si logro conexión entonces ya sabemos que existe ruta al servicio de ADS en el servidor. Telnet y ADS no hablan lo mismo, así que solo necesito ver que hay conexión. c:\>Telnet 192.168.1.1 6262 Una vez conoces que existe ruta porque ves que telnet se conecta aunque luego aborte, entonces ya puedes usar ese mismo server ip y puerto desde Arc32 al diccionario de datos. Si Arc32 se logra conectar, ya el resto no debe ser problema. Mientras no se logre conectar, entonces algo evita que la estación de trabajo vea el ip o el puerto. Espero te sirva, Reinaldo.
ADS Remoto
Reinaldo, muchas gracias, lo probaré
ADS Remoto
en el sito developer de ads existe una herramienta para poder probar si un purto esta abierto. yo la uso para verificar. ahora la apertura de un purto en el firewall de windows 7 es diferente al del firewall de xp, lo mejor es buscar en google como abrir un purto por ejemplo para mysql para darse al idea como se hace, elijo esto por que es muy comun el tema en internet. si lo buscas para abrir un purto de ads como que no es comun la cosa y es dificil encontrarlo. salu2 carlos vargas
ADS Remoto
gracias Carlos, buen dato
ADS Reutiliza los registro borrados lógicos
El problema que tengo es que cuando sumo un registro en archivos con formato ADT , la BDD primero intenta , si es que tiene , recuperar un registro borrado lógicamente si no encuentra ninguno agrega físicamente uno al final de la tabla. Lo que yo quiero es que siempre agregue uno al final de la tabla. Alguien sabe si existe algún SET que me permita que los archivos ADS funcionen de esta manera , es decir igual que el viejo formato DBF. Gracias Hugo Theler
ADS Reutiliza los registro borrados lógicos
Hugo: Al parecer no se puede lo otro es que utilizes el campo AUTOINC
ADS Server & Linux
Has anyone tried Advantage Data Base Server executing from a Linux server. Does it function ok? If using a Linux server with a computer name of Main Server. Can a windows station execute if file("\\MainServer\Data\SomeFile.dbf") I have never used Linux but I was thinking it may be good for larger installs you would not need Microsoft server. Any thoughts appreciated. Mike
ADS Server & Linux
> Can a windows station execute if file("\\MainServer\Data\SomeFile.dbf") No. ( Unless special software for this purpose is installed allowing Linux to share its files with Windows ). But we can use ADS functions (1) AdsFindNextTable62 and (2) AdsFindNextTable62 to obtain a list of tables available on the ADS server given any mask. With this information, we can ascertain if a file exists. Alternatively we can TRY accessing the table and handle the error returned.