Linked Server

  • Hi,

    I am on SQL 2005. What do you go about getting information from information_schema on linked server?

    SELECT

    Column_Name from servername.databasename.information_schema.columns WHERE Table_Name = 'tablename'

    Thanks,

    Chris

  • You can get that information by using the distributed queries procedures like sp_linkedservers, sp_helplinkedsrvlogin etc.. Look up BOL for "System Stored Procedures" and in there look for "Distributed Queries Procedures"

  • Thanks for the tip..

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

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