0
當我嘗試更新SQL Server 2016內存表中的STATS時,出現以下錯誤。所有其他非內存表運行正常。Ola Hallengren UPDATE STATS在內存表中失敗SQL Server 2016
Date and time: 2016-11-28 11:31:39
Command: UPDATE STATISTICS [DBServer101].[dbo].[tblProcess] [ix_tblProcess_InProcessId]
Msg 50000, Level 16, State 1, Procedure CommandExecute, Line 152 [Batch Start Line 4]
Msg 41317, A user transaction that accesses memory optimized tables or natively compiled modules cannot access more than one user database or databases model and msdb, and it cannot write to master.
Outcome: Failed
Duration: 00:00:00
Date and time: 2016-11-28 11:31:39
這裏是我運行奧拉Hallengren腳本參數:
EXECUTE [dbo].[IndexOptimize]
@Databases = 'USER_DATABASES'
, @FragmentationLow = NULL
, @FragmentationMedium = NULL
, @FragmentationHigh = NULL
, @UpdateStatistics = 'ALL'
, @OnlyModifiedStatistics = 'Y'
, @SortInTempdb = 'N'
, @LogToTable = 'N'
任何幫助是極大的讚賞。