Hi,
For quite a while I have been doing things in Servoy between different databases where I will have a record in Sybase ASE or Oracle and look up related records in a completely different MS SQL database. However that has been taking one record and then using a common key to look up related records in the other database.
I now have a situation where I have a few thousand records in one database that I want to crosscheck in another database. Some of them will have related records and some will not. I want to simply find the ones that have related records and ‘mark’ them. I was planning on using the ConvertFoundSet method to do that. However I don’t think that works and thinking about it I’m not sure that it could work in any kind of efficient way. I notice also for instance that even though I have set up the relationship just fine and it displays fine on an individual record, I can’t for instance sort on related columns nor do a ‘find’ using related columns.
So my questions are:
-
Am I correct and this will NOT work (ConvertFoundSet between different databases)?
-
If that is true, do you think at any point in the future it could work? Perhaps even in a limited, batch-type mode (i.e. maybe ‘relate’ say 200 records at a time)?
-
Right now one of the relations where I am trying to get this to work is between Sybase ASA and Oracle. If I move the Sybase ASA database to an Oracle Schema and then have a relation between one Oracle Schema and another will it then work? I’m very new to Oracle and don’t understand its basic set up that well which is why I created this new database in Sybase. I have a ‘development’ schema though that I could try this out on in Oracle but would that work any better in a relation to the ‘production’ schema in Oracle (both schemas run on the same Oracle server) or do both have to be in the same schema?
Even if that works (true relationships between different Oracle schemas on the same server) it won’t solve everything for me because I will also certainly have a relationship to MS SQL Server and that data will have to remain there. So I’d still appreciate any feedback on question 2 that anyone might have.
- Finally I guess I could loop through records looking for ones that are related and then mark those as Servoy ‘finds’ them. There aren’t that many records in either the Oracle or Sybase databases (a few thousand) so that might work. And after the first time, each week it will just be a few hundred. In finding records in Oracle or Sybase that relate to the MS SQL Server database there will be almost a million records in SQL Server. However I will still just be looping through a few hundred records at a time in Oracle or Sybase and not the million or so in SQL Server. Has anyone done much of that (looping through records where the count is maybe a thousand or more records)? Any advice/thoughts greatly appreciated.
John