Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
query on multiple database
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
gld88
New Member
Join Date:
Aug 2008
Posts:
2
#1
query on multiple database
Aug 19 '08, 11:12 AM
in two database ,i want to select some columns of three tables each of two databases where column name is same
BHTanna
New Member
Join Date:
Aug 2008
Posts:
31
#2
Aug 19 '08, 11:57 AM
All databases on same server?
Comment
Post
Cancel
ck9663
Recognized Expert
Specialist
Join Date:
Jun 2007
Posts:
2878
#3
Aug 19 '08, 03:48 PM
use the
fullname
of the object
Code:
SELECT ....FROM db.owner.yourtable .....LEFT JOIN anotherdb.owner.yourtable
If they're on a different server, you might need to link those server first.
-- CK
Comment
Post
Cancel
gld88
New Member
Join Date:
Aug 2008
Posts:
2
#4
Aug 20 '08, 07:29 AM
Originally posted by
BHTanna
All databases on same server?
yes all database in same server , are you give me some solution
thanks
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment