December 30, 2003 at 11:27 pm
Dear all,
I am new to SQL Server. My previous experience in RDBMS is with Informix. What I would like to do is to access tables from 2 different servers (1 local & 1 remote) from within a stored procedure running on my local server.
Is this achievable? If yes, what is the best way to go about it?
Thanks,
Andreas
December 31, 2003 at 12:09 am
check books online (BOL) for "Linked server"
you would create a linked server on server A to server B and then you can use Server B tables like this :
select ... from serverB.mydatabase.myschema.mytable B
inner join mylocalschema.mylocaltable A
on B.key1 = A.key1
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply