Multi-threaded database on the network

I tried doing a SELECT...UNION to read data from table_1 (in the current app.) and table_2 (table in a different folder), but it's not working.  So I tried doing a query on table_2 (w/ a different session) and then appending it to a temp. table (w/ TBatchMove) in the current app., but I am getting an EDBEngineError:'Attemp to mix objects from different Sessions'.  

Note: The current's app. tables are using the default session and table_2 is accessed using a different session.  

Any ideas/suggestions would be appreciated.
ocean9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
hi ocean9,

not checked with the different sessions,
but so is it done

with physically paths
select * from "c:\pd_work\t2.db" union all select * from "c:\pd_work2\ty.db"

or with aliases
select * from ":PD_Worker:t2" union all select * from ":PD_Worker2:ty"

meikl


0
ocean9Author Commented:
Yes, this would work fine on a local machine, but both the applications are on the network, therefore it involves .NET files so this doesn't work.
0
kretzschmarCommented:
hi ocean9,
you should try to centralize the .NET-file for each application, for each client to a shared network-drive.
meikl
0
BytebackCommented:
I don't know if kretzschmar's solutions works but i though you had to centralize the .net file for all your applications.
0
kretzschmarCommented:
preventive lock ;-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.