Join and manipulate data from two separate databases

pts.
Tags:
Development
SQL
Web site design & management
I'm using SQL2000. How can I join and manipulate tables from two different databases? Thanks, wbrannon18

Answer Wiki

Thanks. We'll let you know when a new response is added.

preface your table with the database. ex.

select … from db.owner.table

if you don’t need to specify the owner you can do:

select * from db..table

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Wbrannon18
    How could I apply what you've suggested using code? web.config (
    0 pointsBadges:
    report
  • Randym
    Yes, the userid you use to connect would need permissions to both databases and tables; but you connect to just one DB. Then the sql statement "select ... from db.owner.table inner join db2.owner.table on ....." should work
    1,740 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: