BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I perform a query on 2 databases

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Tony Walsh
Guest





PostPosted: Tue Feb 22, 2005 5:35 pm    Post subject: How do I perform a query on 2 databases Reply with quote



Hi

the company I am working for have 2 separate databases servers for sales &
nominal (Sybase ASA V9). How do I write an SQLquery to create a join between
the 2 databases. I have done similar in the past (a long time ago) with
TQuery where the database name was incorporated into the table name within
the query. How would this work with SQLQuery

Thanks


Back to top
Lasse
Guest





PostPosted: Tue Feb 22, 2005 9:49 pm    Post subject: Re: How do I perform a query on 2 databases Reply with quote



Hi I am using ms sql, to do a join between different db I include the name
of the "seconday" database, in this example tor_vwab

dbo.ClientRole CR
Inner Join tor_vwab.dbo.Personx P ON P.type = CR.typeTOR

Lasse

"Tony Walsh" <tony-walsh (AT) dna-computers (DOT) co.uk> skrev i meddelandet
news:421b6d5d$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi

the company I am working for have 2 separate databases servers for sales &
nominal (Sybase ASA V9). How do I write an SQLquery to create a join
between the 2 databases. I have done similar in the past (a long time ago)
with TQuery where the database name was incorporated into the table name
within the query. How would this work with SQLQuery

Thanks




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.