Tue, 05 Aug 2003 01:37:54 GMT
I dont see the name of the Database from a thread
Hi! I have a database component on a DataModule. (the DatabaseName propery of it is "DB") I'd like to run a query in a thread, witch uses the same database than themain program. I created a session and a query object for the thread, but I couldn't set the DatabaseName property of the query. It doesn't find the "DB" name database, and the "database" property is read only so I can't set it. I created a database component for the session dynamicly, and the query works with that fine, but I use transactions in the main thread, and the query see just the commited transactions. I don't want the other programs to see the changes before I commit the transactions, but I want the thread to see it. I think i have to use the database on the Datamodul, but I can access it. What can I do? thanks: Gabor ps. Sorry because of my bed English
|