• lmacdonald (6/25/2013)


    Yes but those DDL commands often specify a from clause which is where I can put in the linked server. These do not.

    ahh, you missed the point.

    I created a linked server named SeattleSales.

    the EXECUTE('some command') AT SeattleSales performs the action on the remote linked server, and not locally; you only need a four-part name for DML commands; for DDL, you use the AT <MyLinkedServer> format.

    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!