Ошибка управляемого экземпляра SQL Azure Не удалось загрузить DLL odsole70.dll или одну из DLL, на которые она ссылается

Я пытаюсь вызвать службу API из базы данных управляемого экземпляра SQL Azure и получаю сообщение об ошибке ниже. Однако, когда я выполняю работу с локального SQL-сервера, он работает нормально.

Я использовал следующие запросы:

USE MASTER
GO
sp_configure 'show advanced options', 1 
GO 
RECONFIGURE; 
GO 
sp_configure 'Ole Automation Procedures', 1 
GO 
RECONFIGURE; 

GO 
sp_configure 'show advanced options', 0
GO 
RECONFIGURE; 

Exec sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
Exec sp_OAMethod @Object, 'open', NULL, 'post',
'https://localhost:7071/api/HashPwd', 
'false'
Exec sp_OAMethod @Object, 'send'
Exec sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
Select @ResponseText

Error ---
Msg 17750, Level 16, State 0, Procedure sp_OACreate, Line 1 [Batch Start Line 0]
Could not load the DLL odsole70.dll, or one of the DLLs it references. Reason: 2(The system cannot find the file specified.).
Msg 17750, Level 16, State 0, Procedure sp_OAMethod, Line 1 [Batch Start Line 0]
Could not load the DLL odsole70.dll, or one of the DLLs it references. Reason: 2(The system cannot find the file specified.).
Msg 17750, Level 16, State 0, Procedure sp_OAMethod, Line 1 [Batch Start Line 0]
Could not load the DLL odsole70.dll, or one of the DLLs it references. Reason: 2(The system cannot find the file specified.).
Msg 17750, Level 16, State 0, Procedure sp_OAMethod, Line 1 [Batch Start Line 0]
Could not load the DLL odsole70.dll, or one of the DLLs it references. Reason: 2(The system cannot find the file specified.).

Как исправить ошибку?


person Hemant Sudehely    schedule 21.05.2020    source источник
comment
Это вы хотите для хранимых процедур OLE Automation? В таком случае мы не можем использовать его в Azure. Мы просто можем использовать его локальный SQL. Дополнительные сведения см. В docs.microsoft.com/en-us/sql/relational-databases/   -  person Jim Xu    schedule 26.05.2020


Ответы (1)


Если вы хотите использовать хранимые процедуры OLE Automation, мы просто можем использовать его на локальном сервере SQL. Мы не можем использовать его в базе данных Azure SQL или управляемом экземпляре Azure SQL. Дополнительные сведения см. В документ и документ

person Jim Xu    schedule 28.05.2020