September 8, 2010 at 7:37 am
Is it possible to test if a table exists on Server "B" when running a query on Server "A"? If the table does not exists, how can it be created via a linked server?
Here's what I'm actually attempting to do:
I have a temp table on Server "A" that needs to be matched up against a table on Server "B". The query via linked server runs terribly slow. If I could find a way to place the data from the temp table onto Server "B", and then run an OpenQuery, I could achieve a performance gain.
Any suggestions?
thanks in advance,
pete
September 8, 2010 at 7:39 am
you need to create the linked server first.
then using linkedservername.databasename.dbo.tablename
you can select/alter/create if the account have enough permission which you configured on linked server to connect
----------
Ashish
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy