syntax for connecting from one SQL server to another SQLl Server

  • Hey. In a procedure that is stored on one SQL server I need to search trhough tables that are only part of another SQL server on another machine.

    what is the syntax for the connection?

    thanks

  • Have a look at "linked server" or OPENQUERY in BOL.

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

  • thanks, and sorry about double post, it was not intentional

  • I need to do the same thing, I have linked servers but still get "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection."

    Any ideas?

     

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply