Question: I have a SQL Server Linked Server configured , pointing to an ODBC - accessing a MongoDB driver . The test connections all work OK - and no problems running an OPENQUERY select statement using the Linked Server. But when I attempt to run an EXECUTE AT , and attempt to INSERT the data into a #temp table - I get an error message: declare @myStmt varchar(max) set @myStmt = 'select _id from mytable' CREATE TABLE #temp2 (_id varchar(50) ) INSERT INTO #temp2 EXECUTE (@myStmt) AT my_linked_server DROP TABLE #temp2 Msg 7390, Level 16, State 2, Line 6 The... Read more →