Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Natively Compiled Stored Procedure Workaround for this case

$
0
0
Hello everyone.Could anyone please tell me if there any workaround to implement update in natively compiled stored procedure of one memory optimized table using the data from another mem optimized table?[code="sql"]CREATE PROCEDURE [dbo].[bsp_SetMinCompetitorPrices_MO] @spid INT, @MinCompetitorsPrices as dbo.bT_MinCompetitorsPrices_MO readonlyWITH NATIVE_COMPILATION, SCHEMABINDING, EXECUTE AS OWNERAS BEGIN ATOMIC WITH (TRANSACTION ISOLATION LEVEL = SNAPSHOT, LANGUAGE = N'us_english') UPDATE otu SET otu.CompetitorPriceNat = mincp.MinCompetitorPrice FROM TT_OffersToUpdate_MO otu INNER JOIN @MinCompetitorsPrices mincp ON mincp.ConcreteProductId = otu.ConcreteProductId WHERE otu.spid = @spidEND[/code]Thank you in advance,respectfully,Sergey

Viewing all articles
Browse latest Browse all 3145

Trending Articles