Linked servers SQLNCLI problem. “No transaction is active”

前端 未结 4 551
甜味超标
甜味超标 2021-01-06 07:39

Im trying to execute a stored procedure and simply insert its results in a temporary table, and I\'m getting the following message:

The operation coul

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-06 08:09

    Have you tried using openquery?

    insert into table select * from openquery(myservername, 'exec mydatabase.dbo.mystoredproc param1, param2, param3')
    

提交回复
热议问题