Re: Migration from native Btrieve calls to SQL with ZEOS components
- From: Axel Potthoff <apn51@xxxxxx>
- Date: Tue, 26 Feb 2008 09:16:20 +0100
Bill,
Bill Bach wrote:
This is a very unusual approach. What kind of application is this for?There are several applications for a process optimization system fo
rubber injection moulding machines. Its calculating state of cure
(vulcanisation).
I just cannot fathom why a new database would be needed every month.There are two facts why we need new (small) databases:
documentation:
Some Customers want to keep the information on CD-ROM. Ok, saving on CD
and deleting old records is a possibility.
Batch database:
The rubber compound is made by the supplier batch by batch of about 200
kg. More than batch per shift and machine is needed. Each batch is
slightly different, so batch characterisic is taken in account to
optimize quality an cycletime of the machines. So you have a lott of
batch data records wich are partially needed at offline-systems whitout
network access. So they are transported by USB-Stick.
This makes accessing history a LOT more difficult than it should be,Most users know nearly nothing about database, Btrieve, Pervasive and so
and users may be doing this simple because they do not know any better
way
on. It has to work. And it works very well.
What exact database version are you using? Obviously it is PSQL2000iAt our Customers we have nearly every version from 6.15 to 9.5.
or newer, since the PCC was introduced in that version, but it could be
PSQLV8, PSQLv9, or PSQLv10, and the capabilities may vary between
versions.
It is clear, that 6.15 will not work with SQL.
As for not wanting software on the server, then it is clear that yourACK
customers also do not understand the benefits of client/server
capabilities, and the stability and performance gains that it offers on
any multi-user system.
And this is also true for us. We are not the IT and database freeks. We
are process application engineers. Databases are "only" tools for us.
If they really want to continue (and I recommend against it), thenThanks a lot!
you'll have to have some tricks up your sleeve. You can use the modern
Distributed Tuning Objects (DTO) calls to create the database for your
user, using something like this (copied from the manual):
Dim result As dtoResult
Dim database As DtoDatabase
Set database = New DtoDatabase
' Set properties for new database
database.Name = "MYDATABASE"
database.DdfPath = "C:\test"
database.DataPath = "C:\test"
database.Flags = dtoDbFlagCreateDDF + dtoDbFlagRI
result = my_session.Databases.Add(database)
If NOT result = Dto_Success Then
MsgBox "Error"+ Session.Error(result)
End If
Of course, you must also connect to the server and provide a valid
username/password before running this script. If you are ONLY using
Workgroup Engines, though, then you do NOT need a password, as the WGE
does NOT implement database security at all. In short, you can provide
"Administrator" and no password, and a WGE will allow you in.
See the DTO documentation (provided with the product) for more detailed
information. On older systems, you may need an additional DTO
installation, although PSQLv10 systems should be fine...
I will try that.
Axel
.
- Follow-Ups:
- References:
- Migration from native Btrieve calls to SQL with ZEOS components
- From: Axel Potthoff
- Re: Migration from native Btrieve calls to SQL with ZEOS components
- From: Bill Bach
- Re: Migration from native Btrieve calls to SQL with ZEOS components
- From: Axel Potthoff
- Re: Migration from native Btrieve calls to SQL with ZEOS components
- From: Bill Bach
- Migration from native Btrieve calls to SQL with ZEOS components
- Prev by Date: Re: Performance PSQL 10
- Next by Date: Re: Performance PSQL 10
- Previous by thread: Re: Migration from native Btrieve calls to SQL with ZEOS components
- Next by thread: Re: Migration from native Btrieve calls to SQL with ZEOS components
- Index(es):
Relevant Pages
|