Linked Server missing tables

  • by default, a linked server will only show the objects available in the DEFAULT DATABASE of the loginthat is connecting;

    That's important, because if you have a login 'bob' that has rights to , say the database SANDBOX, but the default database for the login is master, then when you run EXEC sp_tables_ex myLinkedServer (which is what the GUI in SSMS calls), you'd probably see nothing,even though a fully qualified select like SELECT * FROM myLinkedServer.SandBox.Dbo.Invoices will work.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing post 1 (of 2 total)

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