topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
ADS or similar products
|
My best wishes for a fast recovery to your Mum.
EMG
|
ADS or similar products
|
[quote="Enrico Maria Giordano":2onmejc2]My best wishes for a fast recovery to your Mum.
EMG[/quote:2onmejc2]
Me too
|
ADS or similar products
|
>Marco:
>Nobody speak about Apollo and I don't know why.
>Ruben Fernandez
Do you think is the right product for a Fivewin/xHarbour programmer?
Where can I find some pieces of code to better understand the problem?
|
ADS or similar products
|
Hi Enrico, Massimo
Thanks for your kind thoughts. Mum is now home and so far coping quite well. Will post code tomorrow time permitting. It probably needs some explanation with it. Like so many projects it grew out of a simple "proof of concept" but as the project has dvelkoped the simple beginning is probably hard to see.
Regards
Doug
|
ADS or similar products
|
I think Apollo should be a good option as it currently sells for $ 149.00, one-stop shopping for multiple implementations. ADS is much more expensive and only for a specific client.
currently only has an RDD xHarbour developed, but I think only for the local version and not client / server, harbour began to develop the RDD but does not go far
**sorry traslate with google**
salu2
carlos vargas
|
ADS or similar products
|
Marco:
I don't know if it's the right choice, but it's cheaper than other and I think it's esasy.
There's no code and. I dont't know If FWH could go well together.
Very Sorry for my bad English.
Best regards
Ruben Fernandez
|
ADS or similar products
|
HI, i have use ads server and local for several years (10 ou more), this is no cheap, (have an free version to 2 users), but is very good and worth every penny paid. i have more than 40000 clients in an file, with another file with memo giant, and an current acount with more than 1 millions records. never have problem. this is my opinion. i plan change to my sql in future, because ads is now from sap, and the prices maybe change.
norbert
|
ADS or similar products
|
Norberto,
to give a practical example
headquarters: windows server + 20 clients
every branch of the company: vpn to headquarters + from 1 to 10 clients
Fivewin/xHarbour software
Are you able to calculate to costs of necessary licenses?
Thanks again
marco
|
ADS or similar products
|
Marco, no , i m not a resealer, try <!-- m --><a class="postlink" href="http://www.sybase.com">http://www.sybase.com</a><!-- m --> ou in brazil, <!-- m --><a class="postlink" href="http://www.renet.com.br">http://www.renet.com.br</a><!-- m -->. another thing: i try connect 3 offices with vpn in past, without sucess, very slow, now i using windows terminal server (RDP), the speed is much better than vpn.
best regards.
norberto
|
ADS or similar products
|
norberto,
I expect a very good performance using ADS also through a VPN connection.
Does ADS transform a classic application into a client/server application?
Bye
|
ADS or similar products
|
Yes, all process is made in server side... but i dont have good results with browse (twbrowse) using very large database ( + 1 million registers) with vpn. without vpn, in lan, using ADS is very good, no more corruption, slow response, lack of security, transactions, ads solve this. but in vpn, (maybe i miss something) dont work for me, so i use RDP in internet. ads have an internet server, i dont try this, maybe solve this problem (browse).
|
ADS or similar products
|
Norberto,
many years ago when I used Clipper, ntx index files, ms-dos and Netware server and coaxial cables based lan.
I had many problems like corruption detected of ntx and dbf too.
I informed about ADS.
If I remember correctly browsing, reading of record contens are not client/server.
Only writing of database is client/server.
Probably, for this reasons, the performances are not so good.
marco
|
ADS or similar products
|
Hi Marco,
I generally use Remote Desktop to connect different offices because it runs better then vpn with an instable connection (eg. UMTS-HSUPA),
anyway you have a consistent connection so you could make a vpn via amachi (it has a really high data compression) and make some tests with the standard dbf or (better) Sqlite3.
|
ADS para 2 usuarios ?
|
Hola Fivewineros:
Hay una versión de ADS para 2 usuarios que es
comprando un libro en la pagina de ADS.
Alguien la ha testeado.
Muchas gracias.
Saludos
Ruben Fernanddez.
|
ADS para 2 usuarios ?
|
Ruben
yo he comprado el libro y he testeado esa version funciona bien
lamentablemente el libro trata de varios lenguajes de programacion menos de (x)Harbour
saludos
|
ADS para 2 usuarios ?
|
Wilson:
Muchas gracias... que version de ADS te envian.
Muchas gracias de nuevo.
Saludos
Ruben Fernandez
|
ADS para 2 usuarios ?
|
del ultimo libro de Cary Gensen es la 8.1
como te dije funciona ok y se instala sin problemas
saludos
att
|
ADS para 2 usuarios ?
|
Gracias, gracias.
Saludos.
Ruben Fernandez
|
ADS performance
|
I am trying ADS (evaluation version for 2 users). I am using 3 PCs connected throug a 100 Mb LAN. One of them holds the data; the other two read from these data.
My test consists of applying a SET FILTER for "TALLER"$CLIENTE on a 7000 register table, and show the results on a TxBrowse(). Here are the results:
[quote:1rfgdt3h]
Without ADS:
One user. Access time: 3 secs (very good)
Two users - 40 SECS!!!
With ADS:
One user: 14 secs.
Two users: 14 secs.
[/quote:1rfgdt3h]
Certainly, ADS improves the response time whith two simultaneous users but even so, I feel that it is still quite slow, specially considering that the table is not very big (7000 recs, 4.5 Mb). ¿Anybody has experience with ADS and can comment on these results? ¿Is it possible to achieve better times and how? ¿Perhaps the commercial version offers better performance?
Thanks,
Rafael
|
ADS performance
|
Rafael;
Are you using a Data Dictionary? If you are not, then seriously consider creating a data dictionary. It enhances functionality and many times speed to data access.
To begin debugging try to execute the same from ARC32 using an SQL statement:
SELECT * FROM [dbftablename] WHERE contains( fieldname, "taller" )
ARC32 shows the time of execution on the status line. A similar request on my test Linux server yields 0.375 secs on a dbf populated with 734,000 records. It also depends on how many records are returned.
Advantage supports a better type of filter named AOF(). These are optimized indexes that perform much faster.
Don't give up on learning how to use ADS. Advantage has opened much larger markets for my product. I can now install my system on LANS with more than 250 users. I'm able to have multiple satellite stores with 50 or so workstations and all satellite servers connect to a single central server via an internet connection. The central server contains all the data from all the satellite servers. --A user can not delete (not even on purpose) a dbf table nor can it be taken on an USB flash stick. Data is secure. --I have never done a reindex. On one of my customers a single table is 95 GB. --Triggers, --fast text search, --Referential Integrity, --Replication, --SQL and ISAM access to data, -- .NET integration.
Finally, using ADS I'm now writing PHP code that runs on a browser that accesses dbf/cdx data on a Linux server running ADS and Apache. It flies. You could use PHP as I am, or Java, or Pearl, or ASP .net to write your web pages and still use xharbour for your win32 apps sharing the very same data (dbf/cdx or dbf/ntx or adt/adi).
The biggest problem we face is that Advantage does not know that we exist. They support Delphi, C#, VB, .Net, Visual Studio, even Clipper, but harbour is not in their minds. Notice how there is not even an xharbour forum in their ng. We need collaboration from the harbour/xharbour people, including Antonio, to work with Sybase ADS and get better tools for xharbour to have access to ADS, specially having all the API functions added to the ads.lib. Currently less than one half are included.
Reinaldo.
|
ADS performance
|
Reinaldo:
Thank you for your comments which really sound encouraging. The truth is that I am just beggining with ADS in an attemp to solve a problem of slow response in an application already installed in an customer's office.
In these tests, I just installed ADS and followed the basic procedures to test my old program (such a modifying the filters syntax). No data dictionary, so no SQL.
However, the response is still slow. Therefore, I am investigating other causes. Maybe there is a fault in the logic of my program. I still don't know and the application is far to big to post it here for discussion.
The only thing that seems clear is that the program performs very well when there is only one user accessing the main table. Two simultaneous users make the system very slow. Three just collapse it making it almost impossible to use. I am always talking about performing simple filters such as "TALLER PEREZ" $ CLIENTE on a 7000 records table...
Again, thank you for your comment. It seems clear that ADS performs very well, so I'll have to look somewhere in my program to find the cause of the slow response.
Thank you very much
Rafael
|
ADS performance
|
I am really surpised how could you make an ADS progrm so slow to run. My experience with huge tables of several hundred thousand rows and more than hundred users work quite fast even on slower wide area network connections.
Filters like "TALLER PEREZ" $ CLIENTE are inherently the most inefficient. Even such filters give good performance even on huge tables. By the way itis better to use CONTAINS( CLINEENTE, 'TALLER PEREZ') instead. If we have an FTS index on CLEINTE column the results are instantaneous
|
ADS performance
|
NageswaraRao,
I am not blaming ADS; on the contrary, I am convinced that it is a great tool. I am just stating the problem I am experiencing:
LAN with three users
Table of 7000 records
ADS with no Data Dictionary. Just the basic configuration.
Browser: TxBrowse()
oBrw:bChanged := {|| ::LoadDetail()} // This Method just loads and shows the fields such as Name, Address, etc... every time the Browse selects another record
Filter : "TALLER PEREZ"$CLIENTE. About 10 records fulfill than condition.
With just one user, it responds very fast. Two or more users degrade the response time up to the point of making it almost unusable.
By the way: I have tested the same program with and without ADS. With ADS it shows a better response time, but still much slower that what Reinaldo and yourself and many other ADS users are getting.
Therefore, I must conclude that something else is wrong either with my program or the LAN configuraction (although, remember that with just one single user it goes lightning fast). Maybe the bChange block?
Thanks for your coments. Best regards
Rafael
|
ADS performance
|
1) Are you using Server version or Local ADS server on lan ?
2) To simplify the tests, please temporarliy remove the bchanged block. ( Note: TXBrowse calls bchanged block even when a column is changed.)
|
ADS performance
|
NageswaraRao,
[quote:huuz9oew]1) Are you using Server version or Local ADS server on lan ?
[/quote:huuz9oew]
Yes. I installed ADS in the PC that holds the data. Every other PC has one copy of my program installed in its own directory, includinf the three ADS DLLs.
[quote:huuz9oew]2) To simplify the tests, please temporarliy remove the bchanged block. ( Note: TXBrowse calls bchanged block even when a column is changed.)
[/quote:huuz9oew]
I removed the bChanged. Still, no noticeable improvement. However, I noticed something:
I placed a seconds counter like this:
[code:huuz9oew]
.....
nSecons0 := Seconds()
Set Filter...
? Seconds()-nSeconds
Browse()
....
[/code:huuz9oew]
The filter itself is now very fast. The problem seems to be in loading the Browse which takes forever. Also, there is heavy LAN traffic while loading the browse() even when only one record fill the filter condition. In fact, every record in the main table is related to four other tables and it seems as if all the relations are being processed, regardless the filter is satisfied or not... Obviously there is something wrong with my code. I'll have to look at it in depth.
The bottom line is: The filter in itself works well. Now, let's see what am I doing wrong...
Thank you for your suggestions and help
Rafael
|
ADS performance
|
To further simplify, please remove browse also.
run this small simple code
open the table
set filter
go top
skip each row and print a value
close table
measure seconds lapsed at each step
pl let me know if you are on any instant messenger
|
ADS performance
|
NageswaraRao,
Done the test:
[code:21agwgqb]
nSeconds := Seconds()
Do While !Eof()
dbSkip(1)
Enddo
? Seconds()-nSeconds0
[/code:21agwgqb]
Results: From the main PC (the one with the data): 0.02 secs
From the remote PC: 7.83 seconds
If we were working in the old MS-DOS, I woud say that I had I problem with SET BUFFERS=. But, of course, in Windows XP there is no such command. I wonder why the LAN is runing so slow
Rafael
|
ADS performance
|
Could the problem be the antivirus software?
Regards,
Otto
|
ADS performance
|
ADS 8.1 (server version) when executed on the server where ads server and data is installed is made to work faster than accessing from network. So the difference always exists.
Now about your benchmark: On local area network I got a speed of 1.4 secs for skipping 7000 records in a 500,000 records table. Ofcourse this is very highspeed lan.
can you send me your simple source code to my personal email?
|
ADS performance
|
Otto:
[quote:3kyty7kl]Could the problem be the antivirus software?
[/quote:3kyty7kl]I doubt it for the problem appears both in my development LAN and in the customer LAN (which, by the way, has a dedicated server)
NageswaraRao:[quote:3kyty7kl]can you send me your simple source code to my personal email?[/quote:3kyty7kl]
It is difficult to send you the whole app. However, I will try to prepare an small sample and send it to you ASAP.
Thanks to you both
Rafael
|
ADS question?
|
Dear All,
I've used Clip52e/FW/Comix,Clipmore.
Now I move to xHB.Com/ FWH /ADS.
Which do I include .CH file to my .prg?
ADS.CH
DBFCDXAX.CH
etc...
Thanks&Regards,
Dutch
|
ADS question?
|
I work with Borland version of xHarbour.org. Only ads.ch is enough. dbfcdxax.ch is for Clipper 16bit
|
ADS question?
|
Hi Mr. NageswaraRao, G.
Greeting from Indonesia
Can I get samples how to use ADS ?
Regards
Fafi
|
ADS question?
|
Simple sample
[code:2iz2xlw3]
#include "fivewin.ch"
#include "ads.ch"
function Main()
RddRegister( "ADS", 1 )
AdsSetServerType( ADS_LOCAL_SERVER ) // 1
USE CUSTOMER NEW SHARED VIA "ADSCDX" // or "ADSNTX" or "ADT"
BROWSE()
return nil
[/code:2iz2xlw3]
|
ADS question?
|
Thank's for quick reply
Regards
Fafi
|
ADS question?
|
Dear nageswaragunupudi,
[quote="nageswaragunupudi":3ga690i2]I work with Borland version of xHarbour.org. Only ads.ch is enough. dbfcdxax.ch is for Clipper 16bit[/quote:3ga690i2]
How can I use Filter for ADS? May I have samples?
Regards,
Dutch
|
ADS question?
|
Mr Duch
Use the filters in the normal way.
SET FILTER TO ..............
or
DbSetFilter( .... )
The rddads.lib converts these function into ADS native filter functions.
But please keep these points in mind.
Please do not use UDFs. We should use expressions that the Server should understand. That is no alias names. If we have indexes on the fieldnames used in the filter expression, ADS Server creates bitmap filter very fast. ( like comix, six, etc ). If not the ADS server can not fully optimise the filter. In such cases, the unopimised portion is to be resolved at the client level. This normally delays execution.
Once you get used to the ADS functionality and like to use the direct ADS functions, then the rddads.lib supports such direct calls also. For Ads documentation, I suggest you download ARC ( Advantage Data Architect ) from ADS website. This is free. Its help file gives all documentation of ACE32.DLL . RddAds.lib in turn calls these functions in ace32.dll.
But to start with use well known functions like dbsetfilter or the usual commands.
|
ADS question?
|
How different between DbSetFilter() and AdsSetAof()?
Which one does faster?
How can I know how many record are match with filter()
Regards,
Dutch
|
ADS question?
|
When you call DbSetFilter, rddads.lib in turn calls AdsSetAof. DbSetFilter sets the filter both at rdd level and also at ads server level with AdsSetAof, so that the filter works even when the expression is not valid for AdsFilter.
To start with it is better to use DbSetFilter.
AdsKeyCount() gives the number of filterd records, after the filter is set.
|
ADS question?
|
Dear nageswaragunupudi,
Where can I find the ADS function document for using with xHB&FWH?
[quote="nageswaragunupudi":3gys8go2]
AdsKeyCount() gives the number of filterd records, after the filter is set.[/quote:3gys8go2]
Regards,
Dutch
|
ADS remote access
|
Dear Friends,
with the kind help of RF i built my first app which uses the ADS rdd.
This was rather easy. And it works fine with the local ADS server.
Now i would like to know how to acces a remote server.
If i set [b:1awgy3hb]AdsSetServerType(2)[/b:1awgy3hb], where do i have to give an IP address to my app?
Thanks for each help in advance.
Regards,
Detlef
|
ADS remote access
|
Dear friends,
i'm a little bit further <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
I set up an ADS server which operates 200 km from here and built a data dictionary on it with 3 dbf files.
When i open a VPN connection i can call my local data architect ( arc32.exe ) to open a dbf file from the remote server.
My xHarbour app works with the local ADS but can not connect to the remote server. I don't know how to open a dictionary.
The only way to see the remote data is to use the arc32.exe.
But browsing a dbf with the arc32 is very slow. The dbf file has only 13000 records.
Can a xHarbour app be faster than the sluggish speed of the arc32.exe?
I'm rather interested to learn from your experiences.
Bet regards,
Detlef
|
ADS remote access
|
My best advice:
For remote access you should use AIS (Advantage Internet Server), works great.
Download samples:
<!-- m --><a class="postlink" href="http://www.google.d2g.com/ads/demos/">http://www.google.d2g.com/ads/demos/</a><!-- m -->
Local servers is toooo slow for remote connection, try AIS instead.
There are some things you have to setup before attempt to connect to a remote server via AIS.
1) You will need to create a dictionary, and set the flag of "internet" access.
2) You will need to create a user, and set permissions for internet access.
Now from source code:
ADSConnect60(<diccionary>,<servertype>,<user>,<password>)
This function returns .T. if you could succesfully connect to a dictionary
Sample:
AdsConnect60("\\googleserver\adsdemos\demo.add",4,"admin","admin")
In order to "resolve" the server route, you will need a INI file, called ADS.INI
ADS.INI has section with the server name:
[googleserver]
Where you have to setup the ips and ports used to connect:
[googleserver]
LAN_IP = 192.168.2.1
LAN_PORT = 2000
INTERNET_IP = google.d2g.com
INTERNET_PORT = 2001
When you try to connect to an ADS server, AXWCS32.DLL will look for the ADS.INI file, in order to resolve the server location, avoiding the "discovery" process which usually takes its time.
See the samples I suggested to download at the begining of this message
|
ADS remote access
|
Hello Mr.RF
[quote:2lkpaz6h]
1) You will need to create a dictionary, and set the flag of "internet" access.
2) You will need to create a user, and set permissions for internet access.
[/quote:2lkpaz6h]
Can you please guide me on the above to create a dictionary.
AdsConnect60("\\googleserver\adsdemos\[color=blue:2lkpaz6h]demo.add[/color:2lkpaz6h]",4,"admin","admin")
What exactly demo.add contains ?
Can you please an example of a data dictionary ?
[quote:2lkpaz6h]
[googleserver]
LAN_IP = 192.168.2.1
LAN_PORT = 2000
INTERNET_IP = google.d2g.com
INTERNET_PORT = 2001
[/quote:2lkpaz6h]
192.168.2.1 is the IP adress of remote server or local system ?
Thanks
- Ramesh Babu P
|
ADS remote access
|
Ramesh:
In the SQL-based databases, all the stuff is stored in one single file, for example in MS Access all the tables, users, passwords, security schemas,stored procedures, etc is stored into a one singe MDB file, same happens in SQL Server, MySQL, Informix, etc.
ADS tries to do the same, using a "data dictionary" with a "little" difference, the DBF or ADT tables will not be "merge" into one single file, in this case the file is the data dictionary, they will remain as "free files", but they will be handled by the Data Dictionary, because the DD will have an internal reference to them.
How to create a dictionary:
To create the data dictionary you need to use the ARC, open the ARC (Advantage Data Architech), go to DATABASE in the main menu and select NEW DATABASE, give it a name, check the appropiate features you may need, and you are done.
The DD creation is also available via SourceCode in (x)Harbour.
Inmediatly after creating the dictionary you will need to create a "super user account" this is an administrative user account, by default ADS will create the ADSSYS user, and you will have to give it a password.
Data dictionaries will have the .ADD extension.
Once created, you will need to add all the tables you want to be accesed via the data dictionary, remember, the tables will not be merged into the DD, this is only to give the DD a reference of where are those tables located; this gives you an extra level or security because you will need a user and password to access the data.
To add tables into the dictionary, go to the tree structure you will see at the left of the screen, select TABLES, right click over the TABLES item, and you will see a pop up menu, select ADD EXISTING TABLES, then pick up all the tables and indexes you will need to be into the data dictionary and you are done. Tables can be DBF with CDX or NTX indexes and DBT or FPT memos, or ADT tables with ADI indexes and ADM memos, you can also mix ADTs and DBFs in the same dictionary.
The goal of a data dictionary is to give an extra security level because you need to create users in the dictionary and give permissions to them for reading, writting, or deleting data, in DBF or ADT tables.
Data dictionaries are also important for internet access, because every user you create into the dictionary can have, or not to have Internet access to your data, you can set this feature every time you create a new user or you can modify user accounts to let them read your data via internet.
Thanks to ADS, you can handle data using SQL statements, Data dictionaries are also important to users that have worked with SQL based databases, they are used to "connect" to the database using an administrative program, and after that they can write queries to retrieve data, in ADS you can also "connect" o a database, this "database" is called "data dictionary" and, as a Data Dictionary has a list of all the tables needed, you can handle them as in the most popular SQL based systems.
So far so good, let's see now how to use the DD in (x)Harbour code.
First you will need to connect to the dictionary, which is the the most important part:
AdsConnect60(<data dict>,<server type>, <user>,<password>)
<data dict> is the route where the DD is, this route has to be indicated using the UNC:
\\server\shared resource\folder\dictionary.add
sample:
\\googleserver\adsdemos\samples\demo.add
This may sound reasonable if we were working into a LAN, but what if we want to use the Internet access to the data.
For internet access (and to speed the lan access too), ADS will use a configuration file that is used by the AXWCS32.DLL (ADS windows client), this file is an INI file called ADS.INI and you have to place it in the same directory where your exe file is.
This INI files has to be a section with the server name:
[googleserver]
under this section you have to put the LAN address of the server AND in case you were working via internet, you have to place the public IP adress or the domain name:
[googleserver]
LAN_IP=192.168.2.1
When working with the REMOTE ADS server (not the local), you also need to configure the ports of the server where you are reading information, this is done using the Advantage Configuration Utility, only available with the remote server, using this tool, you configure the lan ports and internet ports to be used, and in the ADS.INI you have to indicate such ports.
[googleserver]
LAN_IP=192.168.2.1
LAN_PORT=2000
If you are using the AIS (Advantage Internet Server), you will also have to indicate the public IP of the server, or the domain name in order to resolve de ip address, also, you have to indicate which port is "listening" the internet requests:
[googleserver]
LAN_IP=192.168.2.1
LAN_PORT=2000
INTERNET_IP=google.d2g.com ; or 200.67.137.11
INTERNET_PORT = 2001
Please notice that LAN and INTERNET port must be different.
Back to the dictionary connection, the first two parameters will try to connect to the dictionary using the server type stablished.
AdsConnect60("\\googleserver\adsdemos\demo.add",4,.......)
When calling this function, the ADS client will read the UNC, and inmediatly after will look for the ADS.INI looking for the server name section, and using its entries will try to resolve the server location.
The server type (4) is also important, 4 indicates that it must connect to the server only via INTERNET which means that no matter if the computer is connected to the LAN, the programm will attemp to connect to the server via INTERNET using the entries in the INI file. If there's no internet connection available the program will indicate an error, and it will finish.
Values for the connection parameter are:
(1) Local server only, no client server nor transactions features, no internet access either, this is a free redistributable server for developing, testing or for commercial applications, you can use it in a single computer (stand alone) but you can also use it up to 5 users under LAN enviroments, you are free to use and distribute this server (ADSLOC32.DLL).
(2) Remote server only, you need to have an ADS remote server running in your server. Remote server will run under Novell Netware (from version 5.x and greater), Linux or Windows true 32 enviroments (NT, 2000, XP, 2003 or Vista), your choice.
(3) Local (1) + remote servers (2), the program will attempt to connect first via the remote server, if there's no remote server running on the file server, it will use the local server, this value is adecuate if you are planing to move to a remote server later, because avoids you to write double code or to make modifcations into the source, you can work with free local server, and when you decide to move into the remote server for all the client/server transactional features, you will not need to make any changes to your code, simply install the remote server, and run your program again.
(4) Internet server. This configuration is adecuate for remote computers, not connected to the LAN, using internet to gain access to the data.
(5) Local (1) + Internet (4), you can use both servers, local and internet, for example, you can use the internet access to retrieve data via internet, and use the local server to create temp data files for reporting in your local computer.
(6) Remote (2) + Internet (4), you can use this value when are working in your office in your LAN, retrieving data from the server, and if you go out of the office in a trip or want to work at home, you can use internet to connect to the server, remember, no modifications in the source code are needed, the same exe will work under the lan an under internet.
(7) Local (1) + Remote (2) + Internet (4), this is your best choice since it allows you to connect to any server or combination of servers, for example you are working at your office in your LAN, using the remote server (2), but you go out of the office and decide to work at home, you can use the same exe to connect to a internet server (4), and you can use the local server (1) to create temp DBF or ADT files in your local hd for reporting.
And finally, the last two parameters of the AdsConnect60() function are the user name, and its password, these values are set in the data dictionary when creating a new user.
|
ADS remote access
|
The DD can also be created from source. Here is sample code to create/update a DD using ACE API calls. For more info on ACE calls look at the help in ARC. It also helps reading the .c sources in the rddads contrib lib.
ADS is really-really working very good for me. Speed, stability, remotely access of dbf via Internet, dbf security (very secure) and SQL capability against .ntx and .cdx files. So, with ADS you get to keep ISAM and add SQL to it. Best of both worlds. Futhermore, DBFs are invisible to users on the LAN and/or WAN.
Hope the code below helps.
[code:2mrz0za3]
#include "ads.ch"
#include "fivewin.ch"
#define ADS_DEFAULT 0
REQUEST ADS
REQUEST ADSKeyCount, ADSKeyNo, OrdKeyCount, OrdKeyNo
STATIC aFiles := {}
static cPath
*-----------------------------------------------------------------------------------------------------
Static Function Start()
Local oIni
Local xRDD
Local nErr
Local cParmPath := Arg( 1 )
local xPath
local cIniPath := iif( cParmPath == Nil .or. empty( cParmPath ), ;
cFilePath( GetModuleFileName( GetInstance() ) ) , ;
cParmPath + iif( right( cParmPath, 1 ) == "\", "", "\" ) )
Local cIni := cIniPath + "patients.ini"
INI oIni FILE cIni
GET xPath SECTION "RDD" ENTRY "PATH" OF oIni DEFAULT "f:\mp\data\"
Get xRDD SECTION "RDD" ENTRY "RDD_VERSION" OF oIni DEFAULT "LOCAL"
ENDINI
rddsetdefault( "ADS" )
AdsSetFileType( ADS_NTX )
AdsLocking( ADS_COMPATIBLE_LOCKING )
rddRegister ( "ADS", 1 )
if ( nErr := ADSSetServerType( iif( xRDD == "LOCAL", ADS_LOCAL_SERVER, ADS_REMOTE_SERVER ) ) ) <> 0
MsgStop( "Cannot connect to server " + Str( nErr ), "Problem" )
Else
MsgRun( "Creating ADS Data Dictionary...", "ADS DD creation", { ||CreateDictionary( xPath ) } )
Endif
Return (Nil)
*------------------------------------------------------------------------------------
Function CreateDictionary( xpath )
local aFiles := FileIndexStruc()
cpath := xPath
if !file( cpath+ "mp.add" ) .and. !ADSDDCREATE( cPath+"mp.add",, "mp system data dictionary" )
if !AdsConnect60( cpath + "mp.add", ADS_REMOTE_SERVER, "ADSSYS","mp8" ) //.and. UpdateADSDD()
MsgStop( "Create and/or connect failed." + cValToChar( AdsGetLastError() ), cPath + "mp.add" )
RETURN NIL
Endif
Endif
logfile( "dd.log", { cPath+"mp.add", AdsConnection() } )
AdsDDSetDatabaseProperty( ADS_DD_ENABLE_INTERNET, .t. )
AdsDDSetDatabaseProperty( ADS_DD_INTERNET_SECURITY_LEVEL, ADS_DD_LEVEL_2 )
AdsDDCreateUser( , "mpuser", "mp8", "Mp system users" )
AdsDDCreateUser( , "x12", "mp8", "x12 document users" )
AdsDDCreateUser( , "billing", "mp8", "Billing users" )
AdsSetFileType( ADS_NTX )
aEval( aFiles, { |e| AdsSetFiletype( iif( len( e ) > 1 .and. lower( cFileExt( e[ 2 ] ) ) == "cdx", ADS_CDX, ADS_NTX ) ),;
addfiletoDD( e ), ;
SetTableProp( e ), ;
logfile( "dd.log", { "Adding table to DD", ;
e[1], ;
AdsSetFileType(), ;
cFileExt( e[ min( 2, len( e ) ) ] ), ;
ADSGetLastError() } ) } )
return Nil
*------------------------------------------------------------------------------------
Static Function AddFiletoDD( aFile )
local cIndexs := ""
if len( afile ) > 1 .and. left( afile[ 2 ],1 ) <> "."
aEval( afile, { |e| cIndexs += e +";" }, 2 )
cIndexs := left( cIndexs, len( cIndexs ) -1 )
Endif
Return( AdsDDAddTable( left( afile[ 1 ], at(".", afile[1] )-1 ), ;
cPath + aFile[ 1 ], ;
cIndexs ) )
*------------------------------------------------------------------------------------
static function SetTableProp( aFile )
local cFile := cFileName( afile[ 1 ] )
#ifndef VERSION_0.99
AdsDDSetTableProperty( cFile, ADS_DD_TABLE_AUTO_CREATE, .t. )
#endif
return Nil
*------------------------------------------------------------------------------------
function FileIndexStruc()
local a := {}
aadd( a, { "auditlog.dbf", "auditlog.cdx" } )
aadd( a, { "remits.dbf", "remits.cdx" } )
aadd( a, { "closed.dbf", ".cdx" } )
aadd( a, { "icd4cpts.dbf", "icd4cpts.cdx" } )
aadd( a, { "doctors.dbf", "doc_id.ntx", "doc_name.ntx" } )
aadd( a, { "hospital.dbf","hospital.ntx" } )
aadd( a, { "techs.dbf", "tch_id.ntx" } )
aadd( a, { "macros.dbf", "mcr_id.ntx" } )
aadd( a, { "users.dbf", "users.ntx" } )
aadd( a, { "scribes.dbf","scrb_id.ntx" } )
aadd( a, { "images.dbf", "images.cdx" } ) //"img_rec.ntx","img_adm.ntx" } )
aadd( a, { "imgtypes.dbf",".cdx" } )
aadd( a, { "patients.dbf", "pat_rec.ntx", "pat_ssn.ntx", "pat_name.ntx" } )
aadd( a, { "pat_err.dbf",".cdx" } )
aadd( a, { "poliza.dbf", "poliza.ntx","pol_id.ntx" } )
aadd( a, { "planfile.dbf", "planfile.ntx", "ins_code.ntx" } )
aadd( a, { "zipcode.dbf", "zip_city.ntx", "zip_code.ntx" } )
aadd( a, { "diagfile.dbf", "diagcode.ntx", "diagdesc.ntx" } )
aadd( a, { "forms.dbf", "forms.ntx" } )
aadd( a, { "pmtrsns.dbf", ".ntx" } )
aadd( a, { "meddata.dbf", "meddata.cdx" } )
aadd( a, { "scripts.dbf", ".ntx" } )
aadd( a, { "medsys.dbf", ".ntx" } )
aadd( a, { "pay_items.dbf", "pay_items.cdx" } )
#ifndef PROFESSIONAL
aadd( a, { "abgparm.dbf", "abgparm.cdx" } )
aadd( a, { "adtlog.dbf", "adtlog.cdx" } )
aadd( a, { "nurses.dbf", "nur_id.ntx", "nur_name.ntx" } )
aadd( a, { "autocode.dbf", "acd_code.ntx", "acd_cpt.ntx", "acd_ins.ntx" } )
aadd( a, { "lbdefrs.dbf", "lbdefrs.cdx" } )
aadd( a, { "ovrprdm.dbf", "ovp_code.ntx", "ovp_cpt.ntx" } )
aadd( a, { "revcodes.dbf", "rev_code.ntx", "rev_item.ntx", "rev_desc.ntx" } )
aadd( a, { "charges.dbf", "chr_code.ntx", "chr_desc.ntx", "chr_cpt.ntx", "chr_rev.ntx" } )
aadd( a, { "admit.dbf", "adm_rec.ntx", "adm_num.ntx", "adm_date.ntx", "adm_dis.ntx", "adm_doc.ntx" } )
aadd( a, { "rooms.dbf", "rms_id.ntx" } )
aadd( a, { "meddept.dbf", "meddept.ntx" } )
aadd( a, { "ptechrgs.dbf", "pch_date.ntx", "pch_adm.ntx", "pch_itm.ntx" } )
aadd( a, { "packages.dbf", "pkg_code.ntx" } )
aadd( a, { "abstrct.dbf", "abs_adm.ntx", "abs_rec.ntx" } )
aadd( a, { "consults.dbf", "cns_adm.ntx", "cns_doc.ntx" } )
aadd( a, { "incmprec.dbf", "inr_adm.ntx", "inr_stf.ntx" } )
aadd( a, { "drg.dbf", "drg.ntx" } )
aadd( a, { "admtypes.dbf",".cdx" } )
aadd( a, { "condcds.dbf", "condcds.ntx" } )
aadd( a, { "trnsfs.dbf", "trn_adm.ntx", "trn_date.ntx" } )
aadd( a, { "ubcodes.dbf", "ubc_adm.ntx" } )
aadd( a, { "medyrded.dbf", "medyrded.ntx" } )
aadd( a, { "orders.dbf", "ord_adm.ntx", "ord_date.ntx" } )
aadd( a, { "labordrs.dbf", "lab_adm.ntx", "lab_rec.ntx", "lab_id.ntx", "lab_date.ntx" } )
aadd( a, { "labrslts.dbf", "lrs_id.ntx" } )
aadd( a, { "labrjcts.dbf", "lrj_id.ntx" } )
aadd( a, { "labcmnts.dbf", "lcmts_id.ntx" } )
aadd( a, { "labphned.dbf", "lphnd_id.ntx" } )
aadd( a, { "hemafnds.dbf", "hemafnds.ntx" } )
aadd( a, { "labdepts.dbf", "ldp_dept.ntx" } )
aadd( a, { "xrorders.dbf", "xro_id.ntx", "xro_adm.ntx" } )
aadd( a, { "rdlgsts.dbf", "rdl_id.ntx", "rdl_name.ntx" } )
aadd( a, { "xrtrn.dbf", "xrtrn.cdx" } )
aadd( a, { "autoreg.dbf", "autoreg.cdx" } )
aadd( a, { "triage.dbf", "triage.cdx" } )
aadd( a, { "painarea.dbf", "painarea.cdx" } )
aadd( a, { "cost_ctr.dbf", "cost_ctr.cdx" } )
aadd( a, { "srv_clss.dbf", "srv_clss.cdx" } )
aadd( a, { "dsuppl.dbf", "dsuppl.cdx" } ) //"ds_code.ntx" } )
aadd( a, { "dtypes.dbf", "dtypes.cdx" } ) //"dt_type.ntx", "dt_desc.ntx" } )
aadd( a, { "drstric.dbf", "drstric.cdx" } ) //"dr_code.ntx" } )
aadd( a, { "dietmast.dbf", "dietmast.cdx" } ) //"dietkey.ntx", "dietcode.ntx", "dietdesc.ntx" } )
#endif
return a
*------------------------------------------------------------------------------------
Function IsInDictionary( odbf )
local cfilename := lower( cFileName( odbf:cfilename ) )
if at( ".", cfilename ) == 0
cfilename += ".dbf"
endif
if empty( aFiles )
afiles := FileIndexStruc()
Endif
return aScan( aFiles, { |e| e[ 1 ] = cFileName } ) > 0 // cfileName IN aFiles //
[/code:2mrz0za3]
|
ADS remote access
|
Mr.RF
Thank you very much for your detailed tutorial on ADS. Now I am
right track. I will seek some more help from you after some time.
Mr.Reinaldo
Thank you for the source.
Regards to you both
- Ramesh Babu P
|
ADS remote access
|
[quote="RF":2uxuny61]My best advice:
For remote access you should use AIS (Advantage Internet Server), works great.
...
Local servers is toooo slow for remote connection, try AIS instead.
...
[/quote:2uxuny61]
Hello Rene,
now i'm totally confused.
I thought the ADS Server would be the first choice for handling huge databases better than with dbfntx or even dbfcdx.
If i'm far away from the server i can use the server type setting as 'remote server'.
But you recommend the AIS. Is this a totally different product?
What would you recommend if i want to access the same dbf files by workstations in a local network and also from far way workstations?
Best regards,
Detlef
|
ADS remote access
|
René is THE professor of ADS. He helped me a lot when I got started, so with his permission, I'll try to explain a bit more:
ADS has 3 access modes:
"Local" - means no ADS server software running on the server. You access your tables in the same manner you've always have. In this manner the server only serves as a file server. Slow, prone to corruption, no security. This RDD is free. You are probably using it right now.
"Remote"- You might think that this means access via the Internet. It does not. It mean that you access your tables via the server software running on the server. But work stations are connected inside the LAN where the server is. This is what is called a client-server architecture. Here only the server software (ADS deamon/service) really access the tables and responds to client workstations sending requested data. Using the very same free RDDs, DBFS may be invisible to the client workstations and only after the app has connected to a DD owned by the ADS server service it gains access to data. Here the server is NO longer a simple file server. Think of it like an SQL server. Files are opened and closed in the server not at the workstation. Files are **NOT** sent to the workstation for processing to take place. If power fails on the workstation or it freezes, the files are not affected. Althought it is not obligatory, you should access your tables by connecting to the DD. Only by using a DD you get to protect DBFS and use SLQ commands on the very same dbf/ntx -dbf/cdx files, etc... In this scenario you HAVE to purchase the "server" software which runs as a service in windows, as a NML in Novell, and as a deamon in Linux. Prices depend on the # of users (connections) you want to purchase to connect concurrently. I've been using the windows and the Linux versions with much success. I have never tried the Novell version.
"Internet" - This is what rené is referring to as the AIS. With ADS server software running on the server, local computers (LAN) can access data in the manner I described above, but other workstations out side de LAN, ie.. WAN (via the Internet) can also access the data by connecting to the DD. The user/password combination used to connect to the DD must have internet access enabled. A few other considerations must also be looked at. But the ADS service/deamon running on the server is the very same used by the "remote" connecting computers inside the lan. There are two different ways to connect and view data via an Internet connection. One of them (which is what I'm using), is connecting a FW-Win32 application directly to the DD using a connection from the number of connections allowed by your license directly to the IP/Port where the ADS server is responding to internet connections. Another is via a .net or PHP or Java connection. In the later manner no connection slot from your # of connections license is used.
I'll leave you with that. I hope it helped.
Reinaldo.
|
ADS remote access
|
Reinaldo,
your answer helped me very much.
You were right, i thought the "remote" server mode is the one to connect from a WAN.
Thanks for the clarification <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> .
As you already work with this technology i have some more questions.
Is there a reasonable speed when browsing data with an AIS connection?
Is it possible to allow other clients from the internet to retrieve data from an AIS with php scripts ( just as with mySQL ) ?
And a last question, can i use a query with SQL like syntax from an AIS?
Best regards,
Detlef
|
ADS remote access
|
[quote:2038yjnl]
Is there a reasonable speed when browsing data with an AIS connection?
[/quote:2038yjnl]
response is acceptable. Just open files and keep them opened through the session. I use xbrowse. I have users work totally via an internet connection. Browse, edit data, print reports using a fw-xharbour app.
[quote:2038yjnl]
Is it possible to allow other clients from the internet to retrieve data from an AIS with php scripts ( just as with mySQL ) ?
[/quote:2038yjnl]
Yes. Totally. Even parameterized queries with PHP. Just like with MySQL.
[quote:2038yjnl]
And a last question, can i use a query with SQL like syntax from an AIS?
[/quote:2038yjnl]
Absolutly! and very fast! But must use a Data Dictionary connection, that's all. You also have triggers, stored procedures, on-line backup, and replication. With time I've been using sql statements more and more. Latetly I've been recurring to SQL querries to allow users to xbrowse datasets built ad-hoc.
Listen; there is a recent book on the subject: "Advantage Database Server, A developer's guide" by Cary Jensen and Loy Anderson. You'll find it in Amazon.
There is a 2 user version of the ADS server available for free from the advantagedatabase.com page. It is a good idea to download and start playing with it. That's how I got started. I get special pricing from Extended Systems so, when the time comes for your customers to purchase, email me and I'll transfer my savings over to any fw developer interested.
Reinaldo.
|
ADS remote access
|
Reinaldo,
many thanks again for your explanations.
This now made up my decision to plan my redesign with ADS/AIS as database system.
Best regards,
Detlef
|
ADS server VERSION that you are using
|
Hello,
I would like to please know which ADS version are you using.
I read many complaints about bugs in latest version and also Sybase seems not to be updating and managing the product in a decent way, according to what users say in their forums.
Thank you.
|
ADS server VERSION that you are using
|
7.0
|
ADS server VERSION that you are using
|
v10.1
|
ADS server VERSION that you are using
|
7.0 -> to 11.x
without problems
best regards
Wilson
|
ADS server VERSION that you are using
|
10.1
|
ADS server VERSION that you are using
|
Hi ,
I'm using 11.10 release without problems.
Giuliano
|
ADS server side alias
|
Hi guys!Just sharing this amazing discovery with ADS 8.1Normally, when we do adsconnect60(), we put this on our ads.ini...[remoteserver] INTERNET_IP = <your public ip here> INTERNET_PORT = 2001 LAN_IP = 192.168.0.1 LAN_PORT = 2002[Databases] SERVER = \\remoteserver\DD\database.add;D...notice the 'DD' in "\\remoteserver\DD\database.add;D", it's NOT EVEN SHARED nor exist in the server side....Using ADS 'Server-side aliases', define this to the server side...file: "AdsServer.ini" put the file to ads 'error log' path which is configured with your ADS server 8.1 or higher ( normaly on C: )content of "AdsServer.ini" is[ServerAliases]DD=D:\AdsDictionaryDB=D:\App1\Tablesthe "DB" is the path where you put the tables defined in your database.ADD.... this is to avoid ADS error#8026 "Error obtaining server drive information from server and share names". I dont like the solution posted by ADS wherein my tables are at risk for exposure...The above is based on actual experienced... if may vary from different condition.I think it's worth sharing.... Yesterday (July/2/2008) I can't find any info regarding my problem so this maybe useful with others using ADS over internet.This is total security... there's no way any client can find your tables on the remote side. Applicable and tested.Regards,
|
ADS server side alias
|
Padilla;That was the main reason I started using ADS. NO SHARES. The data is totally hidden from all users. There is no better security than this. BTW, you can connect to your data also using ip:port/path_to_add in adsconnect().like this:xrddpath := "\\192.168.1.1:2000\data\dd.add"AdsConnect60( xrddpath + cDict, ADS_REMOTE_SERVER, "user", "pass" )What I usually do is have a .ini file with the path to the dd and the connection mode (REMOTE, LOCAL, INTERNET) written in a section called: [RDD]:[RDD]path=\\192.168.1.1.:2000\data\dd.addrddVer=REMOTEJust like you said, folder \data on the server does not need to be shared. Totally invisible. SQL what-who?Here is another tip, from within my app I can execute ISAM commands or simple SQLs, such as:[code:36nxg9k9]
SELECT adm.recno AS [Record],
adm.adm_num AS [Account],
trim( pat.last ) + ' ' + trim( pat.last2 ) + ', ' + pat.name AS [Name],
adm.adm_date AS [Adm_date],
adm.dis_date AS [Dis_date],
srv.Insurance AS [Insurance],
(SELECT SUM( pch.total ) FROM [ptechrgs] pch
WHERE pch.adm_num = adm.adm_num ) AS [Charges],
srv.real_amt AS [Expectd],
srv.ins_paymen AS [Ins_Paymnt],
(srv.real_amt - srv.ins_paymen) AS [Pending]
FROM admit adm
LEFT JOIN service srv ON adm.adm_num = srv.adm_num
LEFT JOIN patients pat ON pat.recno = srv.recno
WHERE adm.adm_date < '2008-01-01'
AND adm.dis_date > '2007-12-31'
[/code:36nxg9k9]Reinaldo.
|
ADS server side alias
|
Hello ReinaldoAnother great tip you have here! I hope other guys using ADS shares their experiences too! <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Before I do direct connect \\<ip>:<port>\<share> ... It's great I discover the server-side aliases..It's easier and manageable using 'AdsServer.Ini' on the server...I still have many things to test.... I really appreciate the SQL sample you posted... I really need to go to that path...If any of you ADS guru share wrapper for example AdsSkip() would be greatly appreciated.Count me IN.Regards,
|
ADS server side alias
|
I don't think you need the wrapper for adsskip(). It is used by the RDD. Just use (calias)->( dbskip() ). That should work just the same as long as you use ADSNTX or ADSCDX.
|
ADS server side alias
|
I've been testing the table iteration (speed) like:[code:wvg700yh]for i := 1 to alias->( lastrec() )
...
alias->( dbSkip() ) //here can be be adsskip() since I used ADS all-out
if alias->(eof()) //here can be ADSIsEOF()... (an example function)
exit
end
next[/code:wvg700yh]..OR...I can use dbEval() function which is faster than the for...next iteration.what is your best best recommendation for this matter?Regards,
|
ADS support for R&R report writer. Anyone interested?
|
Hello, I have changed some e-mails with Sybase iAnwhere about possibilityto have ADS support in R&R report writer and they had discussion withLiveware Pub. about this. At the moment adding ADS support is not apriority for Liveware but they can arrange it to be done, if customerscan group together and pay for this development.They are looking for contributions about $20K in total.Sybase iAnywhere is prepared to make a share of the contribution butof course, it would be easyer, if developers also show some interest.Paying $1..2K would be ok for our company for adding ADS support toR&R report engine.Anyone else interested?Taavi.
|
ADS v 9.1 y Harbour 64bits.
|
Hola, buen día
Alguno de ustedes que haya logrado hacer conexión con ADS versión 9.1 y Harbour en 64 bits ?
Saludos
|
ADS v 9.1 y Harbour 64bits.
|
Vikthor,
He realizado algunas pruebas con ADS y FWH 64bits.
Si deseas te puedo enviar las librerias ADS que estoy usando para que verifiques si funcionan con tu applicacion.
Saludos,
George
|
ADS v 9.1 y Harbour 64bits.
|
George,
Si eres tan amable de enviármelas, las subo a bitbucket para que esten a la disposición de todos, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
ADS v 9.1 y Harbour 64bits.
|
[quote="George":1lg2ho3j]Vikthor,
He realizado algunas pruebas con ADS y FWH 64bits.
Si deseas te puedo enviar las librerias ADS que estoy usando para que verifiques si funcionan con tu applicacion.
Saludos,
George[/quote:1lg2ho3j]
Hola George, muchas gracias.
Mi cuenta de correo es vykthor [ at ] hotmail [ dot ] com
|
ADS v 9.1 y Harbour 64bits.
|
Enviado.
Saludos,
George
|
ADS v 9.1 y Harbour 64bits.
|
George,
Muchas gracias por tus ficheros.
Aqui los pongo a disposición de cualquier otro usuario a quien pueda hacerles falta:
[url:3fwx54h7]https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/ads_64bits_vs2013.zip[/url:3fwx54h7]
|
ADS v 9.1 y Harbour 64bits.
|
Un saludos a todos.
He usado los archivos sugeridos por George y al momento de abrir cualquier tabla usando ADS obtengo el siguiente mensaje de error.
Application
===========
Path and name: C:\fwh64.1311\samples\Test.Exe (64 bits)
Size: 3,695,616 bytes
Compiler version: Harbour 3.2.0dev (r1307051602)
FiveWin Version: FWH 13.11
Windows version: 6.1, Build 7600
Time from start: 0 hours 1 mins 0 secs
Error occurred at: 08/20/14, 12:52:30
Error description: Error ADSCDX/6633 The Advantage Database Server did not respond to a database request in a timely manner while using inter-process communications.
He leído el ads.hlp de ADS y suguiere que modifique el ads.ini en :
[SETTINGS]
MAX_TIMEOUTS
Hago los cambios y el error persiste.
Alguien que haya pasado por la misma situación.
Estoy usando ADS Server Versión 9.1 64 Bits , VS2013 y FWH64 2013.11
Saludos
|
ADS v/s ADO.. cuales son sus diferencias ????
|
Alguien me podria orientar sobre el uso de ADS o ADO
cual es mejor<...::::
GRACIAS
|
ADS v/s ADO.. cuales son sus diferencias ????
|
Pues seria el precio, por cierto, ADS tambien puede ser accesado por ADO, porque es un servidor de base de datos cliente / servidor, como puede ser un MySQL, SQL Server, etc.
Basicamente nosotros recomendamos ADS cuando el usuario ya tiene un programa hecho en Clipper o Harbour, y tiene problemas por el volumne de informacion que maneja. ADS tiene la ventaja en que la implementacion es super rapida, usualmente en 2 dias estas funcionando, y funciona como un SQL comun y corriente, con la ventaja que al soportar los 2 modos de acceso, por XBASE o por SQL, puede convivir con otros desarrollos
Con ADO requieres re hacer todo el acceso a datos, cosa que por lo menos te lleva 6 meses, si lo pones sobre la balanza, puedes tener la solucion cara pero inmediata (ADS), o la menos cara, pero que se tomara su tiempo en rehacer el programa.
Tengo casos de clientes que se han llevado 2 años en pasar un programa hecho en DBFs a un SQL, el que menos tiempo se ha llevado se como como 8 meses en hacerlo.
|
ADS version 7
|
Estimados
Como saber con que version esta utilizando la libreria rddAds.lib
Yo actualmente utilizo la vension de ADS 7.1 y he visto los fuentes que hace mencion a ADS_REQUIRE_VERSION6;ADS_REQUIRE_VERSION7;
ADS_REQUIRE_VERSION8
Hay que volver a compilar la libreria, o bien dentro del sistema agregar alguna clausula
Desde ya muy agredecido
Saludos
Patricio
|
ADS version 7
|
Me respondo, si alguien tiene otra solucion favor postearla
Al final tuve que reconstruir la libreria nuevamente, pero me salieron unos warning, pero al parecer son solo advertencia que se declaro una variable con un valor y este no fue utilizado o algo parecido
pero me cuasa cuidado la linea [b:3i951r0d]Warning W8065 adsfunc.c 189[/b:3i951r0d]
[code:3i951r0d]MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -c -O2 -DWIN32;ADS_REQUIRE_VERSION=7.1 -Ic:\harbour\include -o..\..\obj\b32\ads1.obj ads1.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ads1.c:
Warning W8004 ads1.c 727: 'ulRetVal' is assigned a value that is never used in function adsGoTo
Warning W8004 ads1.c 995: 'u32Result' is assigned a value that is never used in function adsSeek
Warning W8004 ads1.c 2611: 'hConnection' is assigned a value that is never used in function adsOpen
Warning W8004 ads1.c 4109: 'u32RetVal' is assigned a value that is never used in function adsGetValueFile
Warning W8004 ads1.c 4139: 'u32RetVal' is assigned a value that is never used in function adsPutValueFile
Warning W8065 ads1.c 4309: Call to function 'AdsApplicationExit' with no prototype in function adsExit
tlib ..\..\lib\rddads.lib -+..\..\obj\b32\ads1.obj,,
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
bcc32 -c -O2 -DWIN32;ADS_REQUIRE_VERSION=7.1 -Ic:\harbour\include -o..\..\obj\b32\adsfunc.obj adsfunc.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
adsfunc.c:
Warning W8065 adsfunc.c 189: Call to function 'AdsApplicationExit' with no prototype in function HB_FUN_ADSAPPLICATIONEXIT
Warning W8004 adsfunc.c 2099: 'fDictionary' is assigned a value that is never used in function HB_FUN_ADSCONNECT60
tlib ..\..\lib\rddads.lib -+..\..\obj\b32\adsfunc.obj,,
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
bcc32 -c -O2 -DWIN32;ADS_REQUIRE_VERSION=7.1 -Ic:\harbour\include -o..\..\obj\b32\adsmgmnt.obj adsmgmnt.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
adsmgmnt.c:
tlib ..\..\lib\rddads.lib -+..\..\obj\b32\adsmgmnt.obj,,
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
[/code:3i951r0d]
Saludos
Patricio
|
ADS wink link option
|
Hi to all.
I'm using ADS Server and I have connected to a database another one with a link and the name of this link is "Second".
Using a table inside this Second link is possible with the command :
Select * from Second.Customers where city = 'Rome'
I'm trying to open the same table from the Use command and I have no success with it. The command Use("Second.Customers") is not working.
Is there some possibility to open a second table in this way ?
Thanks a lot.
|
ADS wink link option
|
Simply use the table name:
USE customers shared new
And thats all, there's no issue opening the same database serveral times.
|
ADS wink link option
|
To use Select statements you need to use a Data Dictionary. It is a great advantage to use a Data Dictionary. In the DD you declare the path to each file. The Select statment will work on the DD where you are currently connected to.
As a side note: using DD you can set dbf files and directories as read only or even hidden from all users except the user that owns the ADS daemon. This will allow your application to work perfectly while connected to the DD while it protects your dbfs/cdxs/ntxs from being accesible via windows explorer or a dos prompt or anything else. Great for data security. Files can not be copied, looked at, deleted...
I hope the first parragraph answers your question.
Reinaldo.
|
ADS with FWH 13 Harbour and MSVC 2010
|
( Moved from another thread on a different topic )
I am using the following:
FWH 13.05
Microsoft Visual C 2010
Harbour ( Antonio's MSVC build dated 4/4/2013 )
For the Advantage Database Server, I have included rddads.lib and ace32.lib but they were not included in the build.
They do work with ADS 10 / 11 but not with 7 or 8.
Supposedly there is a more recent set of files, but I don't have access to them, and these are supposedly compatible with all ADS versions, 6 through 11. I would appreciate obtaining them ASAP so I can test and see if they resolve my problem.
Tim
|
ADS with FWH 13 Harbour and MSVC 2010
|
Tim, are you compile com correct flags :
SET ADS_LIB_VERSION=810 <<<< set for you version
SET HB_DIR_ADS=\_Lib\Ace\81038
and in rddads check if detect you version:
#if 0
/* Compatibility ACE version override.
Usage is discouraged and unnecessary unless we want to
override autodetection. For the latter, ADS_LIB_VERSION
is recommended. If ADS_LIB_VERSION is #defined,
ADS_REQUIRE_VERSION will be ignored. [vszakats] */
#if !defined( ADS_LIB_VERSION )
#if ADS_REQUIRE_VERSION == 5
#define ADS_LIB_VERSION 500
#elif ADS_REQUIRE_VERSION == 6
#define ADS_LIB_VERSION 600
#elif ADS_REQUIRE_VERSION == 7
#define ADS_LIB_VERSION 700
#elif ADS_REQUIRE_VERSION == 8
#define ADS_LIB_VERSION 810
#elif ADS_REQUIRE_VERSION == 9
#define ADS_LIB_VERSION 900
#endif
#endif
#endif
/* Make sure to not allow a manual override requesting
a higher version than the one of ACE. [vszakats] */
#if !defined( ADS_LIB_VERSION )
#define ADS_LIB_VERSION _ADS_LIB_VERSION
#elif ADS_LIB_VERSION > _ADS_LIB_VERSION
#undef ADS_LIB_VERSION
#define ADS_LIB_VERSION _ADS_LIB_VERSION
#endif
Regards
|
ADS with FWH 13 Harbour and MSVC 2010
|
With xHarbour, I have one version that works for all of them. I don't have to compile for different versions of ADS. That would be a nightmare.
I do not have any of the source files for ADS in Harbour so I also can't rebuild libraries.
Tim
|
ADS y FWPPC
|
hola a todos, estoy tratando de compilar mi aplicacion para un MC3090 con WINCE, mi aplicacion ya corre y ya puedo grabar en forma remota a mis DBFs, ahora quiero implementar el uso del servidor ADS pero al compilar me dice que no estan las lib ACE32.LIB y RDDADS.LIB.
La primera ya la libre ya que converti el ACE32.DLL a DEF y luego a LIB para PPC tal como lo vi en otro topico de este foro, pero el problema biene con la RDDADS.LIB ya que no esta en el formato para PPC pero no se como convertirla a COFF ya que el borland solo esta COFF2OMF y tampoco tengo algun DEF ni DLL del RDDADS
que puedo hacer? por su ayuda gracias
Saludos. Alex.
|
ADS y FWPPC
|
Alex,
Lo primero es comprobar si existe una versión de las DLLs de ADS para Pocket PC. Que nosotros sepamos, no existe. Si no existe, no puedes usar ADS desde el Pocket PC.
|
ADS y FWPPC
|
Pues va a ser que no.
No hay cliente ADS para Pocket PC, no puedes conectarte a ADS sin los DLLs del cliente.
Ni el AXWCS32.DLL ni el ACE32.DLL, son "leibles" por el RDDADS compilado para PPC.
Llevo un tiempo preguntado en Extended Systems sobre la posibilidad de tener un cliente para PPC, pero no estan mucho por la labor.
Sin embargo me comentan que el cliente JDBC podria funcionar, pero claro, habria que hacer todo en Java.
|
ADS y FWPPC
|
<!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> es cierto no habia pensado en las librerias de ADS me estaba enfocando solo en la compilacion , gracias por su respuesta... voy a trabajar solo con mi servidor de archivos para afectar los dbfs desde la PPC y a travez de otro programa afecto mi base de datos ADS
Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
ADS y Archivos ADT
|
Estimados
Una consulta archivos ADT de ADS
resulta que cuando elimino un registro este desaparece como se hiciera un PACK, buscando las opciones tengo que muestre archvios deleted, le cambio e igual no los muestra, pero con archvos DBF funcionan sin ningun problema
Mi pregunta es si alguien le sucede lo mismo o hay que configurar algo?
he probado tanto en mi aplicacion y con el Data Arquitec de ADS e igual no los muestra
Cualquier ayuda es bienvenida
|
ADS y Archivos ADT
|
Patricio,
en los archivos ADT se reciclan automaticamente los registros borrados, por lo que no se pueden recuperar una vez borrados, por lo menos es lo que yo entendi.
saludos
Marcelo
|
ADS y Archivos ADT
|
entonces no es tan bueno como parece ser,,
ese punto es un lado flaco,
te inmaginas que el usuario borre por error los registros?
tendrias que reprogramar tu aplicacion,
agregar un campo logico a las tablas,,
saludos..
|
ADS y Archivos ADT
|
Gracias Marcelo por la aclaracion
voy a tener que hacer una nueva base e insertar los archivos borrados, ya que me gusta saber que usuario ha borrado..
|
ADS y Archivos ADT
|
[quote="sysctrl2":6ldty1i6]entonces no es tan bueno como parece ser,,
ese punto es un lado flaco,
[/quote:6ldty1i6]
Je je je, los SQLs "reales" tampoco hacen un "pack" cuando un registro se borra, adios, se borró.
recuerda que ADS ahora esta mas enfocado a un mercado basado en SQL que en el modelo xBase tradicional
Saludos desde Chile, la proxima semana en Buenos Aires
|
ADS y Archivos ADT
|
Hola
Compañeros para eso existen los triggers en SQL, para estos casos. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saludos
Marco A. Delgado
|
ADS y Archivos ADT
|
Hi Rene,,
estamos tan acostumbrados a los delted en xbase
que se nos hace preocupante este tema jejeje,
pero bueno meteremos un campo bolean en las tablas
para controlar esto,,
saludos....
|
ADS y Diccionario de datos
|
Hola a todos: estoy tratando de usar ADS local con diccionario de datos.
Alguien me puede decir como hacerlo o mostrarme un archivo .ADD como ejemplo.
Como accedo al diccionario de datos en modo local?, como accedo a los archivos (bases.adt) desde programa?
Disculpen y Muchas gracias.
Ruben Fernandez.
|
ADS y FWPPC en Radio Creswin
|
Hola a todos:
Vikthor se encuentra de vacaciones y Nacho Vizcaino me ha pedido hacerme cargo del programa de radio de Vik hoy Miercoles 7 de Diciembre y mañana Jueves 8.
Hoy hablaremos de ADS y el dia de mañana de FiveWin Pocket PC, y estaré abierto para recibir sus dudas e inquietudes via messenger en :
<!-- e --><a href="mailto:RadioCreswin@hotmail.com">RadioCreswin@hotmail.com</a><!-- e -->
Asi que "Listo el Pollo" tendra una "doble dosis" de RF hoy y mañana de 8:00 pm a 9:30 HOra de la Ciudad de Mexico (GMT -6).
Radio CresWin se transmite por internet y pueden conectarse con WinAmp, iTunes, Windows Media en :
<!-- m --><a class="postlink" href="http://radio.creswin.com:8000/listen.pls">http://radio.creswin.com:8000/listen.pls</a><!-- m -->
|
ADS y FWPPC en radio Creswin hoy y mañana
|
Hola a todos:
Vikthor se encuentra de vacaciones y Nacho Vizcaino me ha pedido hacerme cargo del programa de radio de Vik hoy Miercoles 7 de Diciembre y mañana Jueves 8.
Hoy hablaremos de ADS y el dia de mañana de FiveWin Pocket PC, y estaré abierto para recibir sus dudas e inquietudes via messenger en :
<!-- e --><a href="mailto:RadioCreswin@hotmail.com">RadioCreswin@hotmail.com</a><!-- e -->
Asi que "Listo el Pollo" tendra una "doble dosis" de RF hoy y mañana de 8:00 pm a 9:30 HOra de la Ciudad de Mexico (GMT -6).
Radio CresWin se transmite por internet y pueden conectarse con WinAmp, iTunes, Windows Media en :
<!-- m --><a class="postlink" href="http://radio.creswin.com:8000/listen.pls">http://radio.creswin.com:8000/listen.pls</a><!-- m -->
|
ADS y PHP
|
Hola,
Estoy desarrollando un Modulo en PHP que trabaja con ADS y simultanamente un programa de FWH que usan los mismos datos.
Se me presenta que el sistema de escritorio alguien toma un registro y lo coloca lock si accedo desde PHP e intento actualizar el mismo registro me da un error.
La pregunta es como puedo chequear en PHP que un registro esta LOCK por otro usuario y mostrar un mensaje de error,
no encuentro ninguna instruccion dentro del manual.
Gracias por su ayuda,
|
ADS y campo IMAGE
|
Estimados
Alguien sabe como borrar un campo IMAGE de ADS y tablas ADT
lo estoy haciendo de este manera pero veo que no baja
los MB/GB de la base de datos?
[code=fw:bnyowhvk]<div class="fw" id="{CB}" style="font-family: monospace;">recepdoc->IMAGEN := SPACE<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span></div>[/code:bnyowhvk]
lo hago con varios registro, la verdad que ya no se ve la imagen pero
el archivo .ADM sigue con los mismos GB ya esta por llegar los 4GB que es el tope para este tipo de campos
|
ADS y campo IMAGE
|
la solucion es haciendo un
[code=fw:1sf0cgr6]<div class="fw" id="{CB}" style="font-family: monospace;">PACK<br /> </div>[/code:1sf0cgr6]
raro ya que tengo entendido que no se usa PACK para las tablas ADT
BUENO POR LO MENOS BAJARON LAS GB <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
ADS y campos Time- T
|
Hola,
Me gustaría saber si la última versión de ADS, creo que es la 11, soporta los campos Time, "T", que han incorporado Harbour y xHarbour.
¿Y qué ventajas tiene la v.11 sobre la v.10 por favor?.
|
ADS Índice Composto ( SOLUCIONADO )
|
Amigos,
referente:
INDEX ON str(filial,2)+str(cliente,6) to ...
Exemplo:
Utilizando ADS - Funciona perfeitamente <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
nContaRegistros := 0
clientes->( dbsetorder(1), dbseek( str(nFilial,2)+str(nCliente,6) ) )
do while clientes->filial = nFilial .and. clientes->codigo = nCliente .and. clientes->(!eof())
nContaRegistros ++
clientes->(dbskip())
enddo
? nContaRegistros // total 423 <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
-----------------------------------------------------------------------
Utilizando ADS - Não funciona <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
nContaRegistros := 0
clientes->( dbsetorder(1), dbseek( str(nFilial,2) ) )
do while clientes->filial = nFilial .and. clientes->(!eof())
nContaRegistros ++
clientes->(dbskip())
enddo
? nContaRegistros // total 5 <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
O ADS só permite trabalhar com índice composto integral ???
Existe alguma saída para isso?
obrigado
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.