Create a table using a linked server?

  • 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

  • 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