Answers for "allow a funciton to pass through a linkedserver open query in short form"

0

allow a funciton to pass through a linkedserver open query in short form

DECLARE @OPENQUERY nvarchar(4000), @TSQL nvarchar(4000), @LinkedServer nvarchar(4000)SET @LinkedServer = 'MyLinkedServer'SET @OPENQUERY = 'SELECT * FROM OPENQUERY('+ @LinkedServer + ','''SET @TSQL = 'SELECT au_lname, au_id FROM pubs..authors'')' EXEC (@OPENQUERY+@TSQL)
Posted by: Guest on July-15-2020

Code answers related to "allow a funciton to pass through a linkedserver open query in short form"

Browse Popular Code Answers by Language