Q0004 – Discussing Execute(SQL) At LinkedServer

BIDA Forums Forums General Topics 2-Questions and Answers 1-General Q0004 – Discussing Execute(SQL) At LinkedServer

Viewing 0 reply threads
  • Author
    Posts
    • #966
      Peter Jones
      Keymaster

        One of the ways we are thinking of executing sql on remote BC Servers is as follows.

        https://dzone.com/articles/discuss-executesql-at-linkedserver

         DECLARE @Script nvarchar(max) =
            N'
            <dynamic sql script>
            ';
        EXECUTE (@Script) AT <linked_server_name>
        INSERT <table> (columns)
        EXECUTE (@Script) AT <linked server>; 
        
        • This topic was modified 1 year, 11 months ago by Peter Jones.

        Best Regards
        Peter Jones

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.