Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Purpose of DBISamEngine compoment
Wed, Oct 22 2008 8:07 AMPermanent Link

Oliver
Hello,

I've been writing an application that uses DBISAM. Things are working well. I use various examples that I have found plus the info in the manual.

I have one very basic question. What is the purpose of the DBISamEngine component? The reason I ask is that my application works but uses only
one  DBISAMDatabase  component and one DBISAMQuery component. I effect all my changes, lookups, updates through an SQL Query through the Query component.
The database component points to a local directory.

So overall I would like to understand better under what conditions a DBISAMEngine component is required (as well as a Session component since one is automatically created when
needed.)

Thanks to all who help me understand this.

Oliver
Wed, Oct 22 2008 9:12 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Oliver


As you've spotted DBISAM creates an engine and a session as default.

Unless you need to specifically alter some of the engine's properties in the IDE then don't bother with the component (if you need to alter them at runtime you can always use the default engine). It is the database engine and only ONE instance is allowed per application (naturally if several people run the app they all have their own copy).

The session is a bit different but again unless you need to alter some property in the IDE ignore it UNLESS you're using threads. The session and database are the primary mechanisms for keeping all threads isolated from each other (you need queries / tables as well).


Roy Lambert [Team Elevate]
Image