In SQL Server 2016, i can't remote insert with natively compiled stored procedure.
FactInventory_Hot = In-Memory Table
[10.10.10.109].AzureContosoDB.dbo.FactInventory_Hot = Remote In-Memory Table
CREATE PROCEDURE [dbo].[usp_dataInsert]
WITH NATIVE_COMPILATION, SCHEMABINDING, EXECUTE AS OWNER
AS
BEGIN ATOMIC WITH
(TRANSACTION ISOLATION LEVEL = SNAPSHOT, LANGUAGE = N'us_english')
insert into FactInventory_Hot
select
[InventoryKey]
,[DateKey]
,[StoreKey]
,[ProductKey]
,[CurrencyKey]
,[OnHandQuantity]
,[OnOrderQuantity]
,[SafetyStockQuantity]
,[UnitCost]
,[DaysInStock]
,[MinDayInStock]
,[MaxDayInStock]
,[Aging]
,[ETLLoadID]
,[LoadDate]
,[UpdateDate]
from [10.10.10.109].AzureContosoDB.dbo.FactInventory_Hot
END
Here is error:
Msg 2014, Level 16, State 1, Procedure usp_dataInsert, Line 6 [Batch Start Line 0] Remote access is not allowed from within a schema-bound object.