Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Linked Server and query analyzer [modified]

Linked Server and query analyzer [modified]

Scheduled Pinned Locked Moved Database
databasesysadmintutorialquestionworkspace
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tuwing Sabado
    wrote on last edited by
    #1

    Is it possible to query the table of a remote data server (MS SQL) in "query analyzer" without using a Linked Server? What are the items that I need to setup/know in order to do that? For example: Select local.*, Rmt.* From LocalServer.LocalDatabase.dbo.Table1 local, RemoteServer.RemoteDatabase.dbo.Table2 Rmt NOTE: Query analyzer current server is “Local” -- modified at 11:52 Wednesday 13th December, 2006

    A F 2 Replies Last reply
    0
    • T Tuwing Sabado

      Is it possible to query the table of a remote data server (MS SQL) in "query analyzer" without using a Linked Server? What are the items that I need to setup/know in order to do that? For example: Select local.*, Rmt.* From LocalServer.LocalDatabase.dbo.Table1 local, RemoteServer.RemoteDatabase.dbo.Table2 Rmt NOTE: Query analyzer current server is “Local” -- modified at 11:52 Wednesday 13th December, 2006

      A Offline
      A Offline
      Andy Brummer
      wrote on last edited by
      #2

      Lookup OpenRowset or OpenDataSource in Sql Books online: Here's and example

      SELECT *
      FROM OPENDATASOURCE(
      'SQLOLEDB',
      'Data Source=ServerName;User ID=MyUID;Password=MyPass'
      ).Northwind.dbo.Categories

      Using the GridView is like trying to explain to someone else how to move a third person's hands in order to tie your shoelaces for you. -Chris Maunder

      T 1 Reply Last reply
      0
      • A Andy Brummer

        Lookup OpenRowset or OpenDataSource in Sql Books online: Here's and example

        SELECT *
        FROM OPENDATASOURCE(
        'SQLOLEDB',
        'Data Source=ServerName;User ID=MyUID;Password=MyPass'
        ).Northwind.dbo.Categories

        Using the GridView is like trying to explain to someone else how to move a third person's hands in order to tie your shoelaces for you. -Chris Maunder

        T Offline
        T Offline
        Tuwing Sabado
        wrote on last edited by
        #3

        I spent 4 hours searching Google for this answer, you’re the man. Thanks Andy, to your time and effort to answer my question. -- modified at 20:57 Wednesday 13th December, 2006

        1 Reply Last reply
        0
        • T Tuwing Sabado

          Is it possible to query the table of a remote data server (MS SQL) in "query analyzer" without using a Linked Server? What are the items that I need to setup/know in order to do that? For example: Select local.*, Rmt.* From LocalServer.LocalDatabase.dbo.Table1 local, RemoteServer.RemoteDatabase.dbo.Table2 Rmt NOTE: Query analyzer current server is “Local” -- modified at 11:52 Wednesday 13th December, 2006

          F Offline
          F Offline
          Frank Kerrigan
          wrote on last edited by
          #4

          If it is already a linked server it is a bit simplier. select * from [server].[database].[owner].[table] In pratice this works out as Select * from [OrderServer].[orderdb]..[orders]


          Blog Have I http:\\www.frankkerrigan.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups