Results 1 to 4 of 4

Thread: SELECT Statement

  1. #1
    Vic Guest

    SELECT Statement

    I would like to select data from another server. What is the syntax??
    Eg.
    Select * from database1..table1
    Where should I put the server name??


    Thanks in advance!


  2. #2
    Jim W Guest

    SELECT Statement (reply)

    Assuming you have created the linked server, use this:

    select * from otherserver.database1..table1


    ------------
    Vic at 3/7/01 10:16:23 AM

    I would like to select data from another server. What is the syntax??
    Eg.
    Select * from database1..table1
    Where should I put the server name??


    Thanks in advance!


  3. #3
    Vic Guest

    SELECT Statement (reply)

    how do I create the linked server??


    ------------
    Jim W at 3/7/01 10:19:01 AM

    Assuming you have created the linked server, use this:

    select * from otherserver.database1..table1


    ------------
    Vic at 3/7/01 10:16:23 AM

    I would like to select data from another server. What is the syntax??
    Eg.
    Select * from database1..table1
    Where should I put the server name??


    Thanks in advance!


  4. #4
    phil_mccormack Guest

    SELECT Statement (reply)

    look up sp_addlinkedserevr in books online.


    ------------
    Vic at 3/7/01 10:22:15 AM

    how do I create the linked server??


    ------------
    Jim W at 3/7/01 10:19:01 AM

    Assuming you have created the linked server, use this:

    select * from otherserver.database1..table1


    ------------
    Vic at 3/7/01 10:16:23 AM

    I would like to select data from another server. What is the syntax??
    Eg.
    Select * from database1..table1
    Where should I put the server name??


    Thanks in advance!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •